/* =====================================================
   EBSU E-Voting – Global Styles
   ===================================================== */

:root {
    --primary: #0d47a1;
    --primary-dark: #0a3a87;
    --accent: #1565c0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

main {
    flex: 1;
}

/* ---------- Brand Bar ---------- */
.brand-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.brand-bar .uni-logo {
    height: 52px;
    width: auto;
}

.brand-bar .uni-name {
    font-weight: 800;
    font-size: 1.35rem;
    color: #0d47a1;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.brand-bar .uni-location {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.brand-bar .portal-title {
    font-weight: 800;
    font-size: 1.45rem;
    color: #0d47a1;
    letter-spacing: -0.4px;
}

.brand-bar .portal-tagline {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.campus-img {
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Main Nav ---------- */
.main-nav {
    background: #0d47a1;
    padding: 0;
}

.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 14px 18px !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.main-nav .nav-link.active {
    background: #fff;
    color: #0d47a1 !important;
    font-weight: 600;
}

.nav-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- Common components ---------- */
.election-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.election-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.12) !important;
}

.candidate-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.candidate-card:hover {
    border-color: var(--primary);
}

.candidate-card.selected {
    border-color: var(--primary);
    background-color: rgba(13, 71, 161, 0.05);
}

.candidate-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.status-badge {
    font-size: 0.8rem;
}

.otp-input {
    letter-spacing: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

/* Admin sidebar */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #212529;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link i {
    width: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .brand-bar .uni-name { font-size: 1.1rem; }
    .brand-bar .portal-title { font-size: 1.2rem; }
    .campus-img { display: none; }
}

@media (max-width: 576px) {
    .brand-bar .uni-name { font-size: 0.95rem; }
    .main-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 0.85rem;
    }
}