/* Tangub City Color Palette - Enhanced */
:root {
    --deep-red: #880808;
    --dark-maroon: #770000;
    --golden-orange: #FFA726;
    --bright-yellow: #FFC107;
    --light-cream: #FFF8E1;
    --dark-gray: #212121;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --success-green: #4CAF50;
    --info-blue: #2196F3;
    --warning-orange: #FF9800;
    --danger-red: #f44336;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-cream) 0%, #f8f4e6 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
}

/* Authentication Pages Styles */
.auth-page {
    background: none;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-red) 0%, var(--dark-maroon) 30%, var(--golden-orange) 70%, var(--bright-yellow) 100%);
    z-index: -1;
}

.voter-bg {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 30%, var(--golden-orange) 70%, var(--bright-yellow) 100%) !important;
}

.admin-bg {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 30%, var(--deep-red) 70%, var(--dark-maroon) 100%) !important;
}

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.s1 {
    width: 100px;
    height: 100px;
    background: var(--bright-yellow);
    border-radius: 50%;
    top: 15%;
    left: 10%;
}

.s2 {
    width: 80px;
    height: 80px;
    background: var(--golden-orange);
    border-radius: 50%;
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.s3 {
    width: 120px;
    height: 120px;
    background: var(--bright-yellow);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.s4 {
    width: 90px;
    height: 90px;
    background: var(--golden-orange);
    transform: rotate(45deg);
    top: 25%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.back-nav {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

/* Enhanced Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, var(--deep-red) 0%, var(--dark-maroon) 100%);
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 76px;
    left: 0;
    padding: 2rem 0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0 1rem;
}

.sidebar li {
    margin-bottom: 0.8rem;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--golden-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar a:hover {
    background: rgba(255, 167, 38, 0.15);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar a:hover::before {
    transform: scaleY(1);
}

.sidebar a.active {
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
    color: var(--dark-gray);
    box-shadow: 0 4px 20px rgba(255, 167, 38, 0.4);
    font-weight: 600;
}

.sidebar a.active::before {
    transform: scaleY(1);
    background: var(--dark-gray);
}

/* Enhanced Main Content */
.main-content {
    margin-left: 280px;
    margin-top: 76px;
    padding: 2.5rem;
    min-height: calc(100vh - 76px);
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.3) 0%, rgba(248, 244, 230, 0.5) 100%);
}

.main-content h2 {
    color: var(--dark-maroon);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: var(--golden-orange);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.1);
    background: white;
    transform: translateY(-2px);
}

/* Enhanced Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    gap: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bright-yellow), #FFD54F);
    color: var(--dark-gray);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red), #E53935);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green), #66BB6A);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-blue), #42A5F5);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* Enhanced Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    color: var(--dark-maroon);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.card .number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card p {
    color: #666;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Enhanced Tables */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-header {
    background: linear-gradient(135deg, var(--dark-maroon), var(--deep-red));
    color: white;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th {
    background: rgba(255, 248, 225, 0.8);
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 1rem;
}

tr {
    transition: all 0.3s ease;
}

tr:hover {
    background: rgba(255, 167, 38, 0.05);
    transform: translateX(4px);
}

/* Enhanced Profile Photos */
.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--golden-orange);
    box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 167, 38, 0.4);
}

.profile-photo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--golden-orange);
    box-shadow: 0 2px 10px rgba(255, 167, 38, 0.3);
}

/* Enhanced Alerts */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-left: 5px solid;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border-left-color: var(--success-green);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: #C62828;
    border-left-color: var(--danger-red);
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    color: #1565C0;
    border-left-color: var(--info-blue);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #E65100;
    border-left-color: var(--warning-orange);
}

/* Enhanced Voting Interface */
.voting-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.voting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
}

.voting-card h3 {
    color: var(--dark-maroon);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.candidate-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--golden-orange);
    box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
    transition: all 0.3s ease;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.candidate-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.candidate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
    transition: height 0.3s ease;
}

.candidate-card:hover {
    border-color: var(--golden-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.candidate-card:hover::before {
    height: 5px;
}

.candidate-card.selected {
    border-color: var(--golden-orange);
    background: rgba(255, 167, 38, 0.1);
    box-shadow: 0 8px 30px rgba(255, 167, 38, 0.3);
}

.candidate-card.selected::before {
    height: 5px;
}

.candidate-card h4 {
    color: var(--dark-maroon);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.candidate-card p {
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
}

.candidate-card label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
}

.candidate-card input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--golden-orange);
}

/* Enhanced Action Buttons Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(20px);
    text-decoration: none;
    color: inherit;
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--golden-orange);
    box-shadow: var(--shadow-hover);
}

.action-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--golden-orange);
}

.action-card h3 {
    color: var(--dark-maroon);
    margin-bottom: 1rem;
    font-weight: 700;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 1rem;
    }

    .auth-header {
        padding: 2rem 2rem 1.5rem;
    }

    .auth-form,
    .auth-footer,
    .success-actions {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .auth-logo {
        font-size: 3.5rem;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .register-options {
        gap: 0.8rem;
    }

    .register-option {
        padding: 1.2rem;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .key-list {
        gap: 0.3rem;
    }

    .demo-key {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .requirements li {
        font-size: 0.85rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 250px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 1.4rem;
        margin-left: 50px;
    }

    .header .user-info {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        float: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .candidate-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card .number {
        font-size: 2.5rem;
    }

    .voting-card {
        padding: 1.5rem;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--golden-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bright-yellow);
}

.auth-card {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
}

.voter-card::before {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.admin-card::before {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.auth-header {
    text-align: center;
    padding: 3rem 3rem 2rem;
}

.auth-logo {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.voter-card .auth-logo {
    color: #4CAF50;
    background: none;
    -webkit-text-fill-color: initial;
}

.admin-card .auth-logo {
    color: #2196F3;
    background: none;
    -webkit-text-fill-color: initial;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    color: var(--dark-maroon);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--golden-orange);
    font-weight: 600;
}

.voter-card .subtitle {
    color: #4CAF50;
}

.admin-card .subtitle {
    color: #2196F3;
}

.auth-description {
    color: #666;
    font-size: 1.1rem;
    margin: 1rem 0 0 0;
    font-weight: 500;
}

.auth-form {
    padding: 0 3rem 2rem;
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.input-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus {
    outline: none;
    border-color: var(--golden-orange);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.1);
    background: white;
    transform: translateY(-2px);
}

.voter-card .input-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.admin-card .input-group input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-group input::placeholder {
    color: #999;
    font-style: italic;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
}

.password-toggle:hover {
    opacity: 1;
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.3rem 2rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
}

.voter-card .auth-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.admin-card .auth-btn.primary {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4);
}

.voter-card .auth-btn:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.admin-card .auth-btn:hover {
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin: 0 3rem 1.5rem;
    border-left: 5px solid;
}

.auth-alert.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border-left-color: #4CAF50;
}

.auth-alert.error {
    background: rgba(244, 67, 54, 0.1);
    color: #C62828;
    border-left-color: #f44336;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.auth-alert strong {
    display: block;
    margin-bottom: 0.3rem;
}

.auth-alert p {
    margin: 0;
    font-size: 0.95rem;
}

.success-actions {
    text-align: center;
    padding: 0 3rem 2rem;
}

.auth-footer {
    background: rgba(255, 167, 38, 0.05);
    padding: 2rem 3rem 3rem;
    border-top: 1px solid rgba(255, 167, 38, 0.1);
}

.voter-card .auth-footer {
    background: rgba(76, 175, 80, 0.05);
    border-top-color: rgba(76, 175, 80, 0.1);
}

.admin-card .auth-footer {
    background: rgba(33, 150, 243, 0.05);
    border-top-color: rgba(33, 150, 243, 0.1);
}

.auth-footer h4 {
    text-align: center;
    color: var(--dark-maroon);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.register-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.register-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.register-option:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.register-option.voter:hover {
    border-color: #4CAF50;
}

.register-option.admin:hover {
    border-color: #2196F3;
}

.option-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.register-option.voter .option-icon {
    color: #4CAF50;
}

.register-option.admin .option-icon {
    color: #2196F3;
}

.register-option div {
    flex: 1;
}

.register-option strong {
    display: block;
    color: var(--dark-maroon);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.register-option p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.option-arrow {
    font-size: 1.5rem;
    color: var(--golden-orange);
    transition: transform 0.3s ease;
}

.register-option:hover .option-arrow {
    transform: translateX(5px);
}

.demo-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-info h5 {
    text-align: center;
    color: var(--dark-maroon);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.demo-item {
    background: rgba(255, 167, 38, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.demo-item strong {
    display: block;
    color: var(--dark-maroon);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.demo-item span {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.key-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.key-badge {
    background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
}

.voter-card .key-badge {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.admin-card .key-badge {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.demo-keys {
    text-align: center;
    margin: 1.5rem 0;
}

.demo-keys strong {
    display: block;
    color: var(--dark-maroon);
    margin-bottom: 1rem;
}

.key-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-key {
    background: linear-gradient(135deg, var(--info-blue), #42A5F5);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

.voter-card .demo-key {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.admin-card .demo-key {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.requirements {
    margin: 1.5rem 0;
    background: rgba(33, 150, 243, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #2196F3;
}

.requirements h5 {
    color: var(--dark-maroon);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements li {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements li:last-child {
    margin-bottom: 0;
}

.key-note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
}

/* Enhanced Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ✅ vertically align everything */
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--deep-red) 0%, var(--dark-maroon) 100%);
    color: white;
    /* padding: 1.2rem 2rem; */
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px; /* space between logo and h1 */
}

.school-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, white, var(--bright-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .user-info {
    float: right;
    margin-top: -35px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .user-info span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.header .user-info a {
    color: var(--bright-yellow);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.header .user-info a:hover {
    background: var(--golden-orange);
    color: white;
    transform: translateY(-2px
    )}
        /* Tangub City Color Palette - Enhanced */
        :root {
            --deep-red: #880808;
            --dark-maroon: #770000;
            --golden-orange: #FFA726;
            --bright-yellow: #FFC107;
            --light-cream: #FFF8E1;
            --dark-gray: #212121;
            --light-gray: #f5f5f5;
            --white: #ffffff;
            --success-green: #4CAF50;
            --info-blue: #2196F3;
            --warning-orange: #FF9800;
            --danger-red: #f44336;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--light-cream) 0%, #f8f4e6 100%);
            color: var(--dark-gray);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Enhanced Login/Auth Page Styles */
        .login-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--deep-red) 0%, var(--dark-maroon) 30%, var(--golden-orange) 70%, var(--bright-yellow) 100%);
            z-index: -1;
        }

        .gradient-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 20%, rgba(255, 167, 38, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(255, 193, 7, 0.2) 0%, transparent 50%);
        }

        .floating-shapes {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .shape {
            position: absolute;
            opacity: 0.15;
        }

        .shape-1 {
            width: 100px;
            height: 100px;
            background: var(--bright-yellow);
            border-radius: 50%;
            top: 15%;
            left: 10%;
            animation: float 8s ease-in-out infinite;
        }

        .shape-2 {
            width: 80px;
            height: 80px;
            background: var(--golden-orange);
            border-radius: 50%;
            top: 70%;
            right: 15%;
            animation: float 6s ease-in-out infinite reverse;
        }

        .shape-3 {
            width: 120px;
            height: 120px;
            background: var(--bright-yellow);
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
            top: 60%;
            left: 20%;
            animation: float 10s ease-in-out infinite;
        }

        .shape-4 {
            width: 90px;
            height: 90px;
            background: var(--golden-orange);
            clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
            top: 25%;
            right: 25%;
            animation: float 7s ease-in-out infinite reverse;
        }

        .shape-5 {
            width: 60px;
            height: 60px;
            background: var(--bright-yellow);
            transform: rotate(45deg);
            top: 80%;
            right: 40%;
            animation: float 9s ease-in-out infinite;
        }

        .shape-6 {
            width: 140px;
            height: 140px;
            background: var(--golden-orange);
            border-radius: 30%;
            top: 10%;
            right: 10%;
            animation: float 12s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }

            33% {
                transform: translateY(-30px) rotate(5deg);
            }

            66% {
                transform: translateY(20px) rotate(-3deg);
            }
        }

        /* Auth Container */
        .auth-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        /* Mode Toggle */
        .mode-toggle {
            display: flex;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            padding: 0.5rem;
            margin-bottom: 2rem;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .mode-btn {
            background: none;
            border: none;
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .mode-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .mode-btn.active {
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            color: var(--dark-gray);
        }

        .mode-icon {
            font-size: 1.1rem;
        }

        /* Auth Card */
        .auth-card {
            max-width: 500px;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 25px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

        .auth-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
        }

        .auth-header {
            text-align: center;
            padding: 3rem 3rem 2rem;
        }

        .logo-container {
            margin-bottom: 1.5rem;
        }

        .logo-icon {
            font-size: 4.5rem;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
            margin-bottom: 1rem;
        }

        .auth-header h1 {
            font-size: 2.2rem;
            font-weight: 700;
            line-height: 1.2;
            margin: 0;
            color: var(--dark-maroon);
        }

        .logo-subtitle {
            font-size: 1.3rem;
            color: var(--golden-orange);
            font-weight: 600;
        }

        .auth-subtitle p {
            color: #666;
            font-size: 1.1rem;
            margin: 0;
            font-weight: 500;
        }

        /* Enhanced Forms */
        .auth-form {
            padding: 0 3rem 2rem;
        }

        .password-input {
            position: relative;
        }

        .password-input input {
            padding-right: 3rem;
        }

        .toggle-password {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            opacity: 0.6;
            transition: opacity 0.3s ease;
        }

        .toggle-password:hover {
            opacity: 1;
        }

        .form-hint {
            display: block;
            margin-top: 0.5rem;
            font-size: 0.85rem;
            color: #666;
            font-style: italic;
        }

        .auth-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 1.1rem;
            font-weight: 700;
            padding: 1.3rem 2rem;
            margin-top: 1.5rem;
        }

        /* Enhanced Footer */
        .auth-footer {
            background: rgba(255, 167, 38, 0.05);
            padding: 2rem 3rem 3rem;
            border-top: 1px solid rgba(255, 167, 38, 0.1);
        }

        .credentials-section h4,
        .key-info h4 {
            text-align: center;
            color: var(--dark-maroon);
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .key-examples {
            text-align: center;
        }

        .key-example {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .key-format {
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 15px;
            font-family: 'Courier New', monospace;
            font-weight: 700;
            font-size: 1rem;
        }

        .key-desc {
            color: var(--dark-maroon);
            font-weight: 600;
        }

        .key-note {
            font-size: 0.9rem;
            color: #666;
            margin-top: 1rem;
            line-height: 1.5;
        }

        /* Legacy Login Container (for backward compatibility) */
        .login-container {
            max-width: 450px;
            margin: 120px auto;
            padding: 3rem;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: var(--shadow-hover);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .login-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
        }

        .login-container h2 {
            text-align: center;
            color: var(--dark-maroon);
            margin-bottom: 2.5rem;
            font-size: 2rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Enhanced Header Styles */
        .header {
            background: linear-gradient(135deg, var(--deep-red) 0%, var(--dark-maroon) 100%);
            color: white;
            padding: 1.2rem 2rem;
            box-shadow: var(--shadow);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .header h1 {
            font-size: 1.8rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            background: linear-gradient(45deg, white, var(--bright-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header .user-info {
            float: right;
            margin-top: -35px;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .header .user-info span {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .header .user-info a {
            color: var(--bright-yellow);
            text-decoration: none;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
        }

        .header .user-info a:hover {
            background: var(--golden-orange);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
        }

        /* Enhanced Sidebar Styles */
        .sidebar {
            background: linear-gradient(180deg, var(--deep-red) 0%, var(--dark-maroon) 100%);
            width: 280px;
            height: 100vh;
            position: fixed;
            top: 76px;
            left: 0;
            padding: 2rem 0;
            overflow-y: auto;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        }

        .sidebar ul {
            list-style: none;
            padding: 0 1rem;
        }

        .sidebar li {
            margin-bottom: 0.8rem;
        }

        .sidebar a {
            color: white;
            text-decoration: none;
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            border-radius: 12px;
            transition: all 0.3s ease;
            font-weight: 500;
            position: relative;
            overflow: hidden;
        }

        .sidebar a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: var(--golden-orange);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .sidebar a:hover {
            background: rgba(255, 167, 38, 0.15);
            transform: translateX(8px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .sidebar a:hover::before {
            transform: scaleY(1);
        }

        .sidebar a.active {
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            color: var(--dark-gray);
            box-shadow: 0 4px 20px rgba(255, 167, 38, 0.4);
            font-weight: 600;
        }

        .sidebar a.active::before {
            transform: scaleY(1);
            background: var(--dark-gray);
        }

        /* Enhanced Main Content */
        .main-content {
            margin-left: 280px;
            margin-top: 76px;
            padding: 2.5rem;
            min-height: calc(100vh - 76px);
            background: linear-gradient(135deg, rgba(255, 248, 225, 0.3) 0%, rgba(248, 244, 230, 0.5) 100%);
        }

        .main-content h2 {
            color: var(--dark-maroon);
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .main-content h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            border-radius: 2px;
        }

        .form-group {
            margin-bottom: 2rem;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.8rem;
            color: var(--dark-gray);
            font-weight: 600;
            font-size: 1rem;
        }

        .form-group input {
            width: 100%;
            padding: 1rem 1.2rem;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.8);
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--golden-orange);
            box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.1);
            background: white;
            transform: translateY(-2px);
        }

        /* Enhanced Buttons */
        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            min-width: 120px;
            gap: 0.5rem;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transition: all 0.5s ease;
            transform: translate(-50%, -50%);
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            color: white;
            box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4);
        }

        .btn-secondary {
            background: linear-gradient(135deg, var(--bright-yellow), #FFD54F);
            color: var(--dark-gray);
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
        }

        .btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--danger-red), #E53935);
            color: white;
            box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
        }

        .btn-danger:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--success-green), #66BB6A);
            color: white;
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        }

        .btn-success:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
        }

        .btn-info {
            background: linear-gradient(135deg, var(--info-blue), #42A5F5);
            color: white;
            box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
        }

        .btn-info:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
        }

        /* Enhanced Dashboard Cards */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .card {
            background: rgba(255, 255, 255, 0.95);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .card h3 {
            color: var(--dark-maroon);
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            font-weight: 700;
        }

        .card .number {
            font-size: 3.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .card p {
            color: #666;
            font-weight: 500;
            font-size: 1.1rem;
        }

        /* Enhanced Tables */
        .table-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .table-header {
            background: linear-gradient(135deg, var(--dark-maroon), var(--deep-red));
            color: white;
            padding: 1.5rem 2rem;
            font-size: 1.3rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 1.2rem 1.5rem;
            text-align: left;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        th {
            background: rgba(255, 248, 225, 0.8);
            font-weight: 700;
            color: var(--dark-gray);
            font-size: 1rem;
        }

        tr {
            transition: all 0.3s ease;
        }

        tr:hover {
            background: rgba(255, 167, 38, 0.05);
            transform: translateX(4px);
        }

        /* Enhanced Profile Photos */
        .profile-photo {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--golden-orange);
            box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
            transition: all 0.3s ease;
        }

        .profile-photo:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 30px rgba(255, 167, 38, 0.4);
        }

        .profile-photo-small {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--golden-orange);
            box-shadow: 0 2px 10px rgba(255, 167, 38, 0.3);
        }

        /* Enhanced Alerts */
        .alert {
            padding: 1.2rem 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            font-weight: 600;
            border-left: 5px solid;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .alert-success {
            background: rgba(76, 175, 80, 0.1);
            color: #2E7D32;
            border-left-color: var(--success-green);
        }

        .alert-error {
            background: rgba(244, 67, 54, 0.1);
            color: #C62828;
            border-left-color: var(--danger-red);
        }

        .alert-info {
            background: rgba(33, 150, 243, 0.1);
            color: #1565C0;
            border-left-color: var(--info-blue);
        }

        .alert-warning {
            background: rgba(255, 152, 0, 0.1);
            color: #E65100;
            border-left-color: var(--warning-orange);
        }

        /* Enhanced Voting Interface */
        .voting-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: var(--shadow);
            padding: 2.5rem;
            margin-bottom: 2rem;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .voting-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
        }

        .voting-card h3 {
            color: var(--dark-maroon);
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .candidate-photo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1.5rem;
            border: 4px solid var(--golden-orange);
            box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
            transition: all 0.3s ease;
        }

        .candidate-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .candidate-card {
            background: rgba(255, 255, 255, 0.9);
            border: 3px solid #e0e0e0;
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .candidate-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 0;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            transition: height 0.3s ease;
        }

        .candidate-card:hover {
            border-color: var(--golden-orange);
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .candidate-card:hover::before {
            height: 5px;
        }

        .candidate-card.selected {
            border-color: var(--golden-orange);
            background: rgba(255, 167, 38, 0.1);
            box-shadow: 0 8px 30px rgba(255, 167, 38, 0.3);
        }

        .candidate-card.selected::before {
            height: 5px;
        }

        .candidate-card h4 {
            color: var(--dark-maroon);
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .candidate-card p {
            color: #666;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .candidate-card label {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-weight: 600;
            color: var(--dark-gray);
            cursor: pointer;
        }

        .candidate-card input[type="radio"] {
            width: 20px;
            height: 20px;
            accent-color: var(--golden-orange);
        }

        /* Enhanced Action Buttons Grid */
        .action-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .action-card {
            background: rgba(255, 255, 255, 0.95);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            backdrop-filter: blur(20px);
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .action-card:hover {
            transform: translateY(-5px);
            border-color: var(--golden-orange);
            box-shadow: var(--shadow-hover);
        }

        .action-card .icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--golden-orange);
        }

        .action-card h3 {
            color: var(--dark-maroon);
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .action-card p {
            color: #666;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .auth-container {
                padding: 1rem;
            }

            .mode-toggle {
                flex-wrap: wrap;
                justify-content: center;
            }

            .mode-btn {
                padding: 0.8rem 1rem;
                font-size: 0.85rem;
            }

            .auth-card {
                margin: 0;
            }

            .auth-header {
                padding: 2rem 2rem 1.5rem;
            }

            .auth-form,
            .auth-footer {
                padding-left: 2rem;
                padding-right: 2rem;
            }

            .logo-icon {
                font-size: 3.5rem;
            }

            .auth-header h1 {
                font-size: 1.8rem;
            }

            .credentials-grid {
                grid-template-columns: 1fr;
            }

            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                width: 250px;
            }

            .sidebar.mobile-open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding: 1.5rem;
            }

            .header h1 {
                font-size: 1.4rem;
                margin-left: 50px;
            }

            .header .user-info {
                flex-direction: column;
                gap: 0.5rem;
                margin-top: 0.5rem;
                float: none;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .candidate-grid {
                grid-template-columns: 1fr;
            }

            .login-container {
                margin: 50px 1rem;
                padding: 2rem;
            }

            .btn {
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }

            .card {
                padding: 1.5rem;
            }

            .card .number {
                font-size: 2.5rem;
            }

            .voting-card {
                padding: 1.5rem;
            }

            .action-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Loading Animation */
        @keyframes pulse {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }

            100% {
                opacity: 1;
            }
        }

        .loading {
            animation: pulse 2s infinite;
        }

        /* Utility Classes */
        .text-center {
            text-align: center;
        }

        .text-right {
            text-align: right;
        }

        .text-left {
            text-align: left;
        }

        .mb-1 {
            margin-bottom: 1rem;
        }

        .mb-2 {
            margin-bottom: 2rem;
        }

        .mt-1 {
            margin-top: 1rem;
        }

        .mt-2 {
            margin-top: 2rem;
        }

        .hidden {
            display: none;
        }

        .flex {
            display: flex;
        }

        .justify-between {
            justify-content: space-between;
        }

        .justify-center {
            justify-content: center;
        }

        .items-center {
            align-items: center;
        }

        .gap-1 {
            gap: 1rem;
        }

        .gap-2 {
            gap: 2rem;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--golden-orange);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--bright-yellow);
        }

        /* Tangub City Color Palette - Enhanced */
        :root {
            --deep-red: #880808;
            --dark-maroon: #770000;
            --golden-orange: #FFA726;
            --bright-yellow: #FFC107;
            --light-cream: #FFF8E1;
            --dark-gray: #212121;
            --light-gray: #f5f5f5;
            --white: #ffffff;
            --success-green: #4CAF50;
            --info-blue: #2196F3;
            --warning-orange: #FF9800;
            --danger-red: #f44336;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--light-cream) 0%, #f8f4e6 100%);
            color: var(--dark-gray);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Enhanced Header Styles */
        .header {
            background: linear-gradient(135deg, var(--deep-red) 0%, var(--dark-maroon) 100%);
            color: white;
            padding: 1.2rem 2rem;
            box-shadow: var(--shadow);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .header h1 {
            font-size: 1.8rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            background: linear-gradient(45deg, white, var(--bright-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header .user-info {
            float: right;
            margin-top: -35px;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .header .user-info span {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .header .user-info a {
            color: var(--bright-yellow);
            text-decoration: none;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
        }

        .header .user-info a:hover {
            background: var(--golden-orange);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
        }

        /* Enhanced Sidebar Styles */
        .sidebar {
            background: linear-gradient(180deg, var(--deep-red) 0%, var(--dark-maroon) 100%);
            width: 280px;
            height: 100vh;
            position: fixed;
            top: 76px;
            left: 0;
            padding: 2rem 0;
            overflow-y: auto;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        }

        .sidebar ul {
            list-style: none;
            padding: 0 1rem;
        }

        .sidebar li {
            margin-bottom: 0.8rem;
        }

        .sidebar a {
            color: white;
            text-decoration: none;
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            border-radius: 12px;
            transition: all 0.3s ease;
            font-weight: 500;
            position: relative;
            overflow: hidden;
        }

        .sidebar a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: var(--golden-orange);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .sidebar a:hover {
            background: rgba(255, 167, 38, 0.15);
            transform: translateX(8px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .sidebar a:hover::before {
            transform: scaleY(1);
        }

        .sidebar a.active {
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            color: var(--dark-gray);
            box-shadow: 0 4px 20px rgba(255, 167, 38, 0.4);
            font-weight: 600;
        }

        .sidebar a.active::before {
            transform: scaleY(1);
            background: var(--dark-gray);
        }

        /* Enhanced Main Content */
        .main-content {
            margin-left: 280px;
            margin-top: 76px;
            padding: 2.5rem;
            min-height: calc(100vh - 76px);
            background: linear-gradient(135deg, rgba(255, 248, 225, 0.3) 0%, rgba(248, 244, 230, 0.5) 100%);
        }

        .main-content h2 {
            color: var(--dark-maroon);
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .main-content h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            border-radius: 2px;
        }

        /* Enhanced Login Page Styles */
        .login-container {
            max-width: 450px;
            margin: 120px auto;
            padding: 3rem;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: var(--shadow-hover);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .login-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
        }

        .login-container h2 {
            text-align: center;
            color: var(--dark-maroon);
            margin-bottom: 2.5rem;
            font-size: 2rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 2rem;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.8rem;
            color: var(--dark-gray);
            font-weight: 600;
            font-size: 1rem;
        }

        .form-group input {
            width: 100%;
            padding: 1rem 1.2rem;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.8);
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--golden-orange);
            box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.1);
            background: white;
            transform: translateY(-2px);
        }

        /* Enhanced Buttons */
        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            min-width: 120px;
            gap: 0.5rem;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transition: all 0.5s ease;
            transform: translate(-50%, -50%);
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            color: white;
            box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4);
        }

        .btn-secondary {
            background: linear-gradient(135deg, var(--bright-yellow), #FFD54F);
            color: var(--dark-gray);
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
        }

        .btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--danger-red), #E53935);
            color: white;
            box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
        }

        .btn-danger:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--success-green), #66BB6A);
            color: white;
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        }

        .btn-success:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
        }

        .btn-info {
            background: linear-gradient(135deg, var(--info-blue), #42A5F5);
            color: white;
            box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
        }

        .btn-info:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
        }

        /* Enhanced Dashboard Cards */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .card {
            background: rgba(255, 255, 255, 0.95);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .card h3 {
            color: var(--dark-maroon);
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            font-weight: 700;
        }

        .card .number {
            font-size: 3.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .card p {
            color: #666;
            font-weight: 500;
            font-size: 1.1rem;
        }

        /* Enhanced Tables */
        .table-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .table-header {
            background: linear-gradient(135deg, var(--dark-maroon), var(--deep-red));
            color: white;
            padding: 1.5rem 2rem;
            font-size: 1.3rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 1.2rem 1.5rem;
            text-align: left;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        th {
            background: rgba(255, 248, 225, 0.8);
            font-weight: 700;
            color: var(--dark-gray);
            font-size: 1rem;
        }

        tr {
            transition: all 0.3s ease;
        }

        tr:hover {
            background: rgba(255, 167, 38, 0.05);
            transform: translateX(4px);
        }

        /* Enhanced Profile Photos */
        .profile-photo {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--golden-orange);
            box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
            transition: all 0.3s ease;
        }

        .profile-photo:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 30px rgba(255, 167, 38, 0.4);
        }

        .profile-photo-small {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--golden-orange);
            box-shadow: 0 2px 10px rgba(255, 167, 38, 0.3);
        }

        /* Enhanced Alerts */
        .alert {
            padding: 1.2rem 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            font-weight: 600;
            border-left: 5px solid;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .alert-success {
            background: rgba(76, 175, 80, 0.1);
            color: #2E7D32;
            border-left-color: var(--success-green);
        }

        .alert-error {
            background: rgba(244, 67, 54, 0.1);
            color: #C62828;
            border-left-color: var(--danger-red);
        }

        .alert-info {
            background: rgba(33, 150, 243, 0.1);
            color: #1565C0;
            border-left-color: var(--info-blue);
        }

        .alert-warning {
            background: rgba(255, 152, 0, 0.1);
            color: #E65100;
            border-left-color: var(--warning-orange);
        }

        /* Enhanced Voting Interface */
        .voting-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: var(--shadow);
            padding: 2.5rem;
            margin-bottom: 2rem;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .voting-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
        }

        .voting-card h3 {
            color: var(--dark-maroon);
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .candidate-photo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1.5rem;
            border: 4px solid var(--golden-orange);
            box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
            transition: all 0.3s ease;
        }

        .candidate-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .candidate-card {
            background: rgba(255, 255, 255, 0.9);
            border: 3px solid #e0e0e0;
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .candidate-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 0;
            background: linear-gradient(135deg, var(--golden-orange), var(--bright-yellow));
            transition: height 0.3s ease;
        }

        .candidate-card:hover {
            border-color: var(--golden-orange);
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .candidate-card:hover::before {
            height: 5px;
        }

        .candidate-card.selected {
            border-color: var(--golden-orange);
            background: rgba(255, 167, 38, 0.1);
            box-shadow: 0 8px 30px rgba(255, 167, 38, 0.3);
        }

        .candidate-card.selected::before {
            height: 5px;
        }

        .candidate-card h4 {
            color: var(--dark-maroon);
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .candidate-card p {
            color: #666;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .candidate-card label {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-weight: 600;
            color: var(--dark-gray);
            cursor: pointer;
        }

        .candidate-card input[type="radio"] {
            width: 20px;
            height: 20px;
            accent-color: var(--golden-orange);
        }

        /* Enhanced Action Buttons Grid */
        .action-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .action-card {
            background: rgba(255, 255, 255, 0.95);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            backdrop-filter: blur(20px);
        }

        .action-card:hover {
            transform: translateY(-5px);
            border-color: var(--golden-orange);
            box-shadow: var(--shadow-hover);
        }

        .action-card .icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--golden-orange);
        }

        .action-card h3 {
            color: var(--dark-maroon);
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .action-card p {
            color: #666;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                width: 250px;
            }

            .sidebar.mobile-open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding: 1.5rem;
            }

            .header h1 {
                font-size: 1.4rem;
                margin-left: 50px;
            }

            .header .user-info {
                flex-direction: column;
                gap: 0.5rem;
                margin-top: 0.5rem;
                float: none;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .candidate-grid {
                grid-template-columns: 1fr;
            }

            .login-container {
                margin: 50px 1rem;
                padding: 2rem;
            }

            .btn {
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }

            .card {
                padding: 1.5rem;
            }

            .card .number {
                font-size: 2.5rem;
            }

            .voting-card {
                padding: 1.5rem;
            }

            .action-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Loading Animation */
        @keyframes pulse {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }

            100% {
                opacity: 1;
            }
        }

        .loading {
            animation: pulse 2s infinite;
        }

        /* Utility Classes */
        .text-center {
            text-align: center;
        }

        .text-right {
            text-align: right;
        }

        .text-left {
            text-align: left;
        }

        .mb-1 {
            margin-bottom: 1rem;
        }

        .mb-2 {
            margin-bottom: 2rem;
        }

        .mt-1 {
            margin-top: 1rem;
        }

        .mt-2 {
            margin-top: 2rem;
        }

        .hidden {
            display: none;
        }

        .flex {
            display: flex;
        }

        .justify-between {
            justify-content: space-between;
        }

        .justify-center {
            justify-content: center;
        }

        .items-center {
            align-items: center;
        }

        .gap-1 {
            gap: 1rem;
        }

        .gap-2 {
            gap: 2rem;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--golden-orange);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--bright-yellow);
        }

        th, td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        th {
            background-color: var(--light-cream);
            font-weight: 600;
            color: var(--dark-gray);
        }

        tr:hover {
            background-color: #f5f5f5;
        }

        /* Profile Photo */
        .profile-photo {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--golden-orange);
        }

        .profile-photo-small {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        /* Alerts */
        .alert {
            padding: 1rem;
            border-radius: 5px;
            margin-bottom: 1rem;
        }

        .alert-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .alert-info {
            background-color: #cce7ff;
            color: #004085;
            border: 1px solid #b8daff;
        }

        /* Voting Interface */
        .voting-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .candidate-photo {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1rem;
        }

        .candidate-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .candidate-card {
            background: white;
            border: 2px solid #ddd;
            border-radius: 10px;
            padding: 1.5rem;
            text-align: center;
            transition: border-color 0.3s;
        }

        .candidate-card:hover {
            border-color: var(--golden-orange);
        }

        .candidate-card.selected {
            border-color: var(--golden-orange);
            background-color: var(--light-cream);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s;
            }

            .main-content {
                margin-left: 0;
            }

            .header .user-info {
                float: none;
                margin-top: 10px;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Utility Classes */
        .text-center {
            text-align: center;
        }

        .text-right {
            text-align: right;
        }

        .mb-1 {
            margin-bottom: 1rem;
        }

        .mb-2 {
            margin-bottom: 2rem;
        }

        .mt-1 {
            margin-top: 1rem;
        }

        .mt-2 {
            margin-top: 2rem;
        }

        .hidden {
            display: none;
        }

        .flex {
            display: flex;
        }

        .justify-between {
            justify-content: space-between;
        }

        .items-center {
            align-items: center;
        }

    
        /* === BURGER MENU BUTTON === */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.burger-btn span {
    background-color: white;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate burger to X */
.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Show burger only on mobile === */
@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 250px;
        position: fixed;
        z-index: 1050;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }

    /* Optional overlay */
    body.sidebar-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }
}

