/* Custom styles for the election system */

/* General styles */
:root {
    --brand-color: #133b6c;
    --brand-hover: #0e2d52;
    --secondary-hover: #f99207;
    --brand-light: rgba(19, 59, 108, 0.1);
    --secondary-light: rgba(249, 146, 7, 0.1);
    --text-muted: #6c757d;
    --border-light: #dee2e6;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--brand-color);
}

.navbar-brand:hover {
    color: var(--secondary-hover);
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--secondary-hover);
}

.navbar .nav-link i {
    color: var(--brand-color);
    transition: color 0.3s ease;
}

.navbar .nav-link:hover i {
    color: var(--secondary-hover);
}

/* Dashboard styles */
.dashboard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: var(--secondary-hover);
}

.dashboard-card .card-body {
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(19, 59, 108, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.dashboard-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 30px;
    height: calc(100% - 30px);
    width: 2px;
    background-color: var(--border-light);
}

.timeline-item i {
    position: absolute;
    left: -42px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-content {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-content h6 {
    margin-bottom: 5px;
    color: #1a1a1a;
}

.timeline-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Nomination form styles */
.position-select-card {
    height: 100%;
}

.position-select-card .position-card {
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.position-select-card .position-card:hover {
    border-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-check:checked + .position-card {
    background-color: var(--brand-light);
    border-color: var(--brand-color);
    color: var(--brand-color);
}

.form-floating textarea {
    border-radius: 10px;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.25rem var(--brand-light);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-check-input:checked {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

/* Status card styles */
.status-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.phase-indicator {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    margin: 15px 0;
}

.phase-indicator i {
    color: #133b6c;
}

/* Position card styles */
.position-card {
    background-color: white;
    transition: all 0.3s ease;
    height: 100%;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.position-card i {
    background: rgba(19, 59, 108, 0.1);
    color: var(--brand-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.position-card:hover i {
    background: rgba(249, 146, 7, 0.1);
    color: var(--secondary-hover);
}

/* Button styles */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bg-brand {
    background-color: var(--brand-color) !important;
}

.bg-brand:hover {
    background-color: var(--secondary-hover) !important;
    transform: translateY(-2px);
}

.text-brand {
    color: var(--brand-color) !important;
}

/* Primary button styling with brand colors */
.btn-primary {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-hover) !important;
    border-color: var(--brand-hover) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--brand-color) !important;
    color: var(--brand-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Legacy brand button styles for backwards compatibility */
.btn-outline-brand {
    border-color: var(--brand-color);
    color: var(--brand-color);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-check:checked + .btn-outline-brand,
.btn-check:checked + .btn-outline-primary {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: white;
}

.btn-check:checked + .btn-outline-brand i,
.btn-check:checked + .btn-outline-primary i {
    color: white !important;
}

.btn-success, .btn-info, .btn-warning, .btn-danger {
    border: none;
    color: white;
}

/* Breadcrumb styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #133b6c;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item a:hover {
    color: var(--secondary-hover);
}

/* Card styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
}

/* Badge styles */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
}

/* Footer styles */
footer {
    background-color: var(--brand-color);
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .small {
    opacity: 0.8;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-item i {
        left: -22px;
    }
    
    .timeline-item:not(:last-child)::before {
        left: -13px;
    }
    
    .position-card {
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animation styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Page header styles */
h1 {
    font-weight: 700;
    color: #1a1a1a;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Section styles */
section {
    padding: 20px 0;
}

section h2 {
    color: #133b6c;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Candidate card styles */
.candidates-list .card {
    text-align: center;
}

.candidates-list .card-img-top {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 1rem auto;
}

/* Results table styles */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Modal styles */
.modal-header {
    background-color: var(--brand-color);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Alert styles */
.alert {
    border-radius: 8px;
}

/* Status indicators */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-ongoing {
    background-color: var(--brand-light);
    color: var(--brand-color);
}

.status-completed {
    background-color: var(--secondary-light);
    color: var(--secondary-hover);
}

/* Hero Banner styles */
.hero-banner {
    position: relative;
    padding: 10px 0;
    color: white;
}

.hero-banner.custom-banner {
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.min-vh-75 {
    min-height: 75vh;
}

.election-stats {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.phase-indicator-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(19, 59, 108, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #133b6c;
}

.stat-item:hover h3 {
    color: var(--secondary-hover);
}

/* Feature cards */
.feature-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--secondary-hover);
}

.feature-icon-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon-lg i {
    color: var(--brand-color);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon-lg i {
    color: var(--secondary-hover);
}

/* Timeline horizontal */
.timeline-horizontal {
    position: relative;
    padding: 20px 0;
}

.timeline-step {
    text-align: center;
    padding: 20px;
    position: relative;
}

.timeline-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.timeline-step:last-child::after {
    display: none;
}

.timeline-step:hover .timeline-icon {
    border-color: var(--secondary-hover);
    color: var(--secondary-hover);
}

.timeline-step.active .timeline-icon {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: white;
}

.timeline-step.active:hover .timeline-icon {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
} 