/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #20B2AA;
    --primary-dark: #008B8B;
    --primary-light: #48D1CC;
    --secondary-color: #F0F8FF;
    --accent-color: #00CED1;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FFFFFF;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --error: #F44336;
    --success: #4CAF50;
    --warning: #FF9800;
    --info: #2196F3;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive container padding */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
}



.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    margin-right: 15px !important;
    vertical-align: middle !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}

/* Tambahan CSS untuk memastikan logo tidak membesar */
.header .logo .logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
}

/* CSS untuk responsive design */
@media (max-width: 768px) {
    .logo-img {
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
}

@media (max-width: 360px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    min-height: 44px; /* Touch-friendly minimum height */
}

/* Responsive Button Sizes */
@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-height: 48px; /* Larger touch target for mobile */
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .btn-small {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 360px) {
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 48px;
        width: 100%; /* Full width on very small screens */
        justify-content: center;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-success {
    background-color: var(--success);
    color: var(--text-light);
}

.btn-success:hover {
    background-color: #45a049;
}

.btn-danger {
    background-color: var(--error);
    color: var(--text-light);
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-warning {
    background-color: var(--warning);
    color: var(--text-light);
}

.btn-warning:hover {
    background-color: #f57c00;
}

.btn-info {
    background-color: var(--info);
    color: var(--text-light);
}

.btn-info:hover {
    background-color: #1976d2;
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-light);
    opacity: 0.9;
}

/* Enhanced Mobile Header Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav .btn {
        margin: 0;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        gap: 0.75rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .nav .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
    
    .nav .btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        max-width: 100%;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Candidate Cards */
.candidates {
    padding: 4rem 0;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Responsive Candidates Grid */
@media (max-width: 768px) {
    .candidates {
        padding: 3rem 0;
    }
    
    .candidates-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .candidates {
        padding: 2.5rem 0;
    }
    
    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 360px) {
    .candidates {
        padding: 2rem 0;
    }
    
    .candidates-grid {
        gap: 1rem;
        margin-top: 1.25rem;
    }
}

/* Enhanced Candidate Cards */
.candidate-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

/* Responsive Candidate Cards */
@media (max-width: 768px) {
    .candidate-card {
        /* Responsive adjustments */
    }
}

@media (max-width: 480px) {
    .candidate-card {
        /* Responsive adjustments */
    }
}

.candidate-photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 4rem;
}

/* Responsive Candidate Cards */
@media (max-width: 768px) {
    .candidate-photo {
        height: 250px;
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .candidate-photo {
        height: 200px;
        font-size: 3rem;
    }
    
    .candidate-info {
        padding: 1.5rem;
    }
}

@media (max-width: 360px) {
    .candidate-photo {
        height: 180px;
        font-size: 2.5rem;
    }
    
    .candidate-info {
        padding: 1.25rem;
    }
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-info {
    padding: 2rem;
}

.candidate-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.candidate-number {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}



.candidate-vision {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.vote-button {
    width: 100%;
    margin-top: 1rem;
}

/* About Section */
.about {
    background: var(--secondary-color);
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 360px) {
    .about {
        padding: 2rem 0;
    }
    
    .features-grid {
        gap: 1rem;
        margin-top: 1.25rem;
    }
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-light);
}

/* Responsive Feature Items */
@media (max-width: 768px) {
    .feature-item {
        padding: 1.75rem;
    }
    
    .feature-item i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item i {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item h3 {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 360px) {
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--text-light);
    padding-top: 1rem;
    color: var(--text-light);
}

/* Forms */
.form-container {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-container {
        padding: 1.75rem;
        margin: 1.5rem auto;
    }
    
    .form {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
        margin: 1rem auto;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form {
        gap: 1rem;
    }
}

@media (max-width: 360px) {
    .form-container {
        padding: 1.25rem;
        margin: 0.75rem auto;
    }
    
    .form {
        gap: 0.75rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input {
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tables */
.table-container {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 2rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-container {
        margin: 1.5rem 0;
        overflow-x: auto; /* Enable horizontal scroll on small screens */
    }
    
    .table th,
    .table td {
        padding: 0.75rem;
        min-width: 120px; /* Ensure minimum width for readability */
    }
}

@media (max-width: 480px) {
    .table-container {
        margin: 1rem 0;
        border-radius: 6px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .table th,
    .table td {
        padding: 0.4rem;
        min-width: 80px;
        font-size: 0.85rem;
    }
}

.table th {
    background-color: var(--secondary-color);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-success {
    background-color: var(--success);
    color: var(--text-light);
}

.badge-danger {
    background-color: var(--error);
    color: var(--text-light);
}

.badge-warning {
    background-color: var(--warning);
    color: var(--text-light);
}

.badge-info {
    background-color: var(--info);
    color: var(--text-light);
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Dashboard Elements */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Responsive Dashboard Grid */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1.25rem 0;
    }
}

@media (max-width: 360px) {
    .dashboard-grid {
        gap: 1rem;
        margin: 1rem 0;
    }
}

.stat-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Stat Cards */
@media (max-width: 768px) {
    .stat-card {
        padding: 1.75rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 360px) {
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

.stat-content h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Responsive Quick Actions */
@media (max-width: 768px) {
    .quick-actions {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1.25rem 0;
    }
}

@media (max-width: 360px) {
    .quick-actions {
        gap: 0.5rem;
        margin: 1rem 0;
    }
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

.search-filter {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

/* Responsive Search Filter */
@media (max-width: 768px) {
    .search-filter {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .search-form {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .search-filter {
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .search-filter {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .search-form {
        gap: 0.5rem;
    }
}

.export-options {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.export-options h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.export-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Export Options */
@media (max-width: 768px) {
    .export-options {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .export-buttons {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .export-options {
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    .export-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .export-options {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .export-buttons {
        gap: 0.5rem;
    }
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Responsive Admin Layout */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        order: 2;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .main-content {
        order: 1;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .main-content {
        padding: 0.75rem;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 0.5rem;
    }
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

/* Responsive Sidebar Navigation */
@media (max-width: 768px) {
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .sidebar-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.75rem 1rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .nav-item {
        padding: 0.6rem 0.8rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .nav-item {
        padding: 0.5rem 0.6rem;
        min-width: 90px;
        font-size: 0.85rem;
    }
}

.nav-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--background);
}

/* Responsive Main Content */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 0.75rem;
    }
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Responsive Charts Section */
@media (max-width: 768px) {
    .charts-section {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .charts-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1.25rem 0;
    }
}

@media (max-width: 360px) {
    .charts-section {
        gap: 1rem;
        margin: 1rem 0;
    }
}

.chart-container {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Responsive Chart Container */
@media (max-width: 768px) {
    .chart-container {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .chart-container {
        padding: 1rem;
    }
    
    .chart-container h3 {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 360px) {
    .chart-container {
        padding: 0.75rem;
    }
    
    .chart-container h3 {
        margin-bottom: 0.5rem;
    }
}

/* Results Section */
.results-section {
    margin: 2rem 0;
}

.position-results {
    margin-bottom: 3rem;
}

.position-results h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Results Section */
@media (max-width: 768px) {
    .results-section {
        margin: 1.5rem 0;
    }
    
    .position-results {
        margin-bottom: 2rem;
    }
    
    .position-results h3 {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .results-section {
        margin: 1.25rem 0;
    }
    
    .position-results {
        margin-bottom: 1.5rem;
    }
    
    .position-results h3 {
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .results-section {
        margin: 1rem 0;
    }
    
    .position-results {
        margin-bottom: 1.25rem;
    }
    
    .position-results h3 {
        margin-bottom: 0.75rem;
        font-size: 1.2rem;
    }
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.candidate-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.candidate-photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
}

.candidate-info {
    padding: 1.5rem;
}

.candidate-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.candidate-number {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.vote-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.vote-count {
    font-size: 1.1rem;
}

.vote-percentage {
    font-weight: 500;
    color: var(--primary-color);
}

/* Reports Section */
.reports-section {
    margin: 2rem 0;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Responsive Reports Section */
@media (max-width: 768px) {
    .reports-section {
        margin: 1.5rem 0;
    }
    
    .reports-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .reports-section {
        margin: 1.25rem 0;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1.25rem 0;
    }
}

@media (max-width: 360px) {
    .reports-section {
        margin: 1rem 0;
    }
    
    .reports-grid {
        gap: 1rem;
        margin: 1rem 0;
    }
}

.report-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.report-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Report Cards */
@media (max-width: 768px) {
    .report-card {
        padding: 1.75rem;
    }
    
    .report-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .report-card {
        padding: 1.5rem;
    }
    
    .report-icon {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 360px) {
    .report-card {
        padding: 1.25rem;
    }
    
    .report-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

.report-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.report-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Settings Section */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 2px solid #E0E0E0;
}

.tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Settings Tabs */
@media (max-width: 768px) {
    .settings-tabs {
        gap: 0.25rem;
        margin: 1.5rem 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .settings-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .settings-tabs {
        margin: 1.25rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.6rem 0.8rem;
        min-width: 90px;
        font-size: 0.9rem;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .settings-tabs {
        margin: 1rem 0;
        gap: 0.25rem;
    }
    
    .tab-button {
        padding: 0.5rem 0.6rem;
        min-width: 80px;
        font-size: 0.85rem;
    }
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.settings-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.settings-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Responsive Settings Section */
@media (max-width: 768px) {
    .settings-section {
        padding: 1.75rem;
        margin: 1.5rem 0;
    }
    
    .settings-section h3 {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .settings-section {
        padding: 1.5rem;
        margin: 1.25rem 0;
    }
    
    .settings-section h3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 360px) {
    .settings-section {
        padding: 1.25rem;
        margin: 1rem 0;
    }
    
    .settings-section h3 {
        margin-bottom: 0.75rem;
    }
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.maintenance-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Responsive Maintenance Actions */
@media (max-width: 768px) {
    .maintenance-actions {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .maintenance-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 360px) {
    .maintenance-actions {
        gap: 0.75rem;
    }
}

.action-card {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.action-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive Action Cards */
@media (max-width: 768px) {
    .action-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .action-card {
        padding: 1rem;
    }
    
    .action-card h4 {
        margin-bottom: 0.4rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .action-card {
        padding: 0.75rem;
    }
    
    .action-card h4 {
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }
}

.action-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.system-info {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive System Info */
@media (max-width: 768px) {
    .system-info {
        padding: 1.75rem;
        margin: 1.5rem 0;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .system-info {
        padding: 1.5rem;
        margin: 1.25rem 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .system-info {
        padding: 1.25rem;
        margin: 1rem 0;
    }
    
    .info-grid {
        gap: 0.5rem;
    }
}

.info-item {
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

/* Responsive Info Items */
@media (max-width: 768px) {
    .info-item {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .info-item {
        padding: 0.75rem;
    }
}

@media (max-width: 360px) {
    .info-item {
        padding: 0.625rem;
    }
}

/* Stats Section */
.stats-section {
    margin: 2rem 0;
}

.stats-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Responsive Stats Section */
@media (max-width: 768px) {
    .stats-section {
        margin: 1.5rem 0;
    }
    
    .stats-section h3 {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        margin: 1.25rem 0;
    }
    
    .stats-section h3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 360px) {
    .stats-section {
        margin: 1rem 0;
    }
    
    .stats-section h3 {
        margin-bottom: 0.75rem;
    }
}

/* Table Section */
.table-section {
    margin: 2rem 0;
}

.table-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Responsive Table Section */
@media (max-width: 768px) {
    .table-section {
        margin: 1.5rem 0;
    }
    
    .table-section h3 {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .table-section {
        margin: 1.25rem 0;
    }
    
    .table-section h3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 360px) {
    .table-section {
        margin: 1rem 0;
    }
    
    .table-section h3 {
        margin-bottom: 0.75rem;
    }
}

.percentage-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

/* Health Section */
.health-section {
    margin: 2rem 0;
}

.health-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive Health Section */
@media (max-width: 768px) {
    .health-section {
        margin: 1.5rem 0;
    }
    
    .health-section h3 {
        margin-bottom: 1.25rem;
    }
    
    .health-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .health-section {
        margin: 1.25rem 0;
    }
    
    .health-section h3 {
        margin-bottom: 1rem;
    }
    
    .health-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .health-section {
        margin: 1rem 0;
    }
    
    .health-section h3 {
        margin-bottom: 0.75rem;
    }
    
    .health-grid {
        gap: 0.5rem;
    }
}

.health-item {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Health Items */
@media (max-width: 768px) {
    .health-item {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .health-item {
        padding: 0.75rem;
    }
}

@media (max-width: 360px) {
    .health-item {
        padding: 0.625rem;
    }
}

.health-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.status-ok {
    color: var(--success);
}

/* Candidate Photo Thumb */
.candidate-photo-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 1rem;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.75rem 1rem;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .candidates-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .maintenance-actions {
        grid-template-columns: 1fr;
    }
    
    .settings-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .vote-illustration {
        font-size: 8rem;
    }
    
    .candidates-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .candidate-card {
        margin: 0 10px;
    }
    
    .form-container {
        margin: 0 15px;
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .footer,
    .btn,
    .sidebar {
        display: none !important;
    }
    
    .hero,
    .candidates,
    .about {
        padding: 20px 0;
    }
    
    .candidate-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .main-content {
        padding: 0;
    }
}

/* Voting Page Styles */
.voting-form {
    max-width: 1200px;
    margin: 0 auto;
}

.candidate-section {
    margin-bottom: 3rem;
    display: none;
}

.candidate-section.active {
    display: block;
}

/* Responsive Voting Form */
@media (max-width: 768px) {
    .voting-form {
        padding: 0 1rem;
    }
    
    .candidate-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .voting-form {
        padding: 0 0.75rem;
    }
    
    .candidate-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    .voting-form {
        padding: 0 0.5rem;
    }
    
    .candidate-section {
        margin-bottom: 1.25rem;
    }
}

.candidate-section h2 {
    color: #20B2AA;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

.section-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Candidate Section Headers */
@media (max-width: 768px) {
    .candidate-section h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .candidate-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .section-description {
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .candidate-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .section-description {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Responsive Voting Candidates Grid */
@media (max-width: 768px) {
    .candidates-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 360px) {
    .candidates-grid {
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

.candidate-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Responsive Voting Candidate Cards */
@media (max-width: 768px) {
    .candidate-card {
        border-radius: 10px;
        border-width: 2px;
    }
    
    .candidate-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    }
}

@media (max-width: 480px) {
    .candidate-card {
        border-radius: 8px;
        border-width: 2px;
    }
    
    .candidate-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

@media (max-width: 360px) {
    .candidate-card {
        border-radius: 6px;
        border-width: 1px;
    }
    
    .candidate-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }
}

.candidate-label {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.candidate-label.active {
    border-color: #20B2AA;
    background-color: #f0f8ff;
}

.candidate-photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
}

.candidate-info {
    padding: 1.5rem;
}

.candidate-info h3 {
    color: #20B2AA;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.candidate-number {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}



.candidate-vision,
.candidate-mission {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #20B2AA;
}

.candidate-vision h4,
.candidate-mission h4 {
    color: #20B2AA;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.candidate-vision p,
.candidate-mission p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.voting-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Responsive Voting Actions */
@media (max-width: 768px) {
    .voting-actions {
        gap: 0.75rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .voting-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 360px) {
    .voting-actions {
        gap: 0.5rem;
        margin-top: 1.25rem;
    }
}

/* Success Page Styles */
.success-container {
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive Success Container */
@media (max-width: 768px) {
    .success-container {
        margin: 2rem auto;
        padding: 2rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .success-container {
        margin: 1.5rem auto;
        padding: 1.5rem;
        max-width: 95%;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    .success-container {
        margin: 1rem auto;
        padding: 1.25rem;
        max-width: 100%;
        border-radius: 8px;
    }
}

.success-icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 2rem;
}

/* Responsive Success Icon */
@media (max-width: 768px) {
    .success-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .success-icon {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 360px) {
    .success-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
}

.success-container h1 {
    color: #20B2AA;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.success-container p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive Success Actions */
@media (max-width: 768px) {
    .success-actions {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .success-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
}

@media (max-width: 360px) {
    .success-actions {
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

/* Student Dashboard Styles */
.voter-info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Responsive Voter Info Card */
@media (max-width: 768px) {
    .voter-info-card {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .voter-info-card {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .voter-info-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }
}

.voter-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.voter-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
}

/* Responsive Voter Header */
@media (max-width: 768px) {
    .voter-header {
        gap: 1.5rem;
    }
    
    .voter-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .voter-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .voter-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    .voter-header {
        gap: 0.75rem;
    }
    
    .voter-avatar {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

.voter-details h2 {
    color: #20B2AA;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.voter-number,
.voter-class {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.voter-status {
    color: #666;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Responsive Voter Details */
@media (max-width: 768px) {
    .voter-details h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .voter-details h2 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .voter-number,
    .voter-class,
    .voter-status {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 360px) {
    .voter-details h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .voter-number,
    .voter-class,
    .voter-status {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
}

.voting-status-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Responsive Voting Status Card */
@media (max-width: 768px) {
    .voting-status-card {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .voting-status-card {
        margin-bottom: 1.25rem;
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .voting-status-card {
        margin-bottom: 1rem;
        border-radius: 6px;
    }
}

.status-header {
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    color: #ffffff;
    padding: 1.5rem;
}

.status-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

/* Responsive Status Header */
@media (max-width: 768px) {
    .status-header {
        padding: 1.25rem;
    }
    
    .status-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .status-header {
        padding: 1rem;
    }
    
    .status-header h3 {
        font-size: 1.1rem;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .status-header {
        padding: 0.875rem;
    }
    
    .status-header h3 {
        font-size: 1rem;
    }
}

.status-content {
    padding: 2rem;
}

/* Responsive Status Content */
@media (max-width: 768px) {
    .status-content {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .status-content {
        padding: 1.5rem;
    }
}

@media (max-width: 360px) {
    .status-content {
        padding: 1.25rem;
    }
}

.status-success,
.status-pending {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.status-success i {
    color: #4CAF50;
    font-size: 2rem;
}

.status-pending i {
    color: #FF9800;
    font-size: 2rem;
}

/* Responsive Status Success/Pending */
@media (max-width: 768px) {
    .status-success,
    .status-pending {
        gap: 1.25rem;
    }
    
    .status-success i,
    .status-pending i {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .status-success,
    .status-pending {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .status-success i,
    .status-pending i {
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    .status-success,
    .status-pending {
        gap: 0.75rem;
    }
    
    .status-success i,
    .status-pending i {
        font-size: 1.4rem;
    }
}

.status-text h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.status-text p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive Status Text */
@media (max-width: 768px) {
    .status-text h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .status-text h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .status-text p {
        margin-bottom: 0.4rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .status-text h4 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .status-text p {
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
    }
}

.voting-time {
    color: #20B2AA;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Voting Time */
@media (max-width: 480px) {
    .voting-time {
        font-size: 0.85rem;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .voting-time {
        font-size: 0.8rem;
    }
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive Student Dashboard Quick Actions */
@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 360px) {
    .quick-actions {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
}

.action-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid transparent;
}

/* Responsive Student Dashboard Action Cards */
@media (max-width: 768px) {
    .action-card {
        padding: 1.75rem;
        gap: 1.25rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .action-card {
        padding: 1.5rem;
        gap: 1rem;
        border-radius: 8px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .action-card {
        padding: 1.25rem;
        gap: 0.75rem;
        border-radius: 6px;
    }
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.action-card.primary {
    border-color: #20B2AA;
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f0ff 100%);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: #20B2AA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
}

/* Responsive Action Icons */
@media (max-width: 768px) {
    .action-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

.action-content {
    flex: 1;
}

.action-content h3 {
    color: #20B2AA;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.action-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Action Content */
@media (max-width: 768px) {
    .action-content h3 {
        font-size: 1.1rem;
    }
    
    .action-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .action-content h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .action-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    .action-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .action-content p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

.action-arrow {
    color: #20B2AA;
    font-size: 1.2rem;
}

/* Responsive Action Arrow */
@media (max-width: 768px) {
    .action-arrow {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .action-arrow {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .action-arrow {
        font-size: 0.9rem;
    }
}

.election-info,
.important-notes {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.election-info h3,
.important-notes h3 {
    color: #20B2AA;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

/* Responsive Election Info & Important Notes */
@media (max-width: 768px) {
    .election-info,
    .important-notes {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .election-info h3,
    .important-notes h3 {
        margin-bottom: 1.25rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .election-info,
    .important-notes {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
        border-radius: 8px;
    }
    
    .election-info h3,
    .important-notes h3 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .election-info,
    .important-notes {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }
    
    .election-info h3,
    .important-notes h3 {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive Info Grid */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .info-grid {
        gap: 0.5rem;
    }
}

.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive Info Items */
@media (max-width: 768px) {
    .info-item {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .info-item {
        padding: 0.75rem;
    }
}

@media (max-width: 360px) {
    .info-item {
        padding: 0.625rem;
    }
}

.important-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.important-notes li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive Important Notes List */
@media (max-width: 768px) {
    .important-notes ul {
        padding-left: 1.25rem;
    }
    
    .important-notes li {
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .important-notes ul {
        padding-left: 1rem;
    }
    
    .important-notes li {
        margin-bottom: 0.4rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .important-notes ul {
        padding-left: 0.875rem;
    }
    
    .important-notes li {
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
    }
}

/* Candidates Page Styles */
.candidate-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive Candidate Navigation */
@media (max-width: 768px) {
    .candidate-nav {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 0.875rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .candidate-nav {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding: 0.75rem;
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .candidate-nav {
        margin-bottom: 1rem;
        padding: 0.625rem;
        border-radius: 6px;
    }
}

.candidate-nav .nav-link {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Responsive Candidate Nav Links */
@media (max-width: 768px) {
    .candidate-nav .nav-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .candidate-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .candidate-nav .nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}

.candidate-nav .nav-link:hover,
.candidate-nav .nav-link.active {
    background: #20B2AA;
    color: #ffffff;
    text-decoration: none;
}

.no-candidates {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-candidates i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.no-candidates h3 {
    color: #999;
    margin-bottom: 0.5rem;
}

/* Responsive No Candidates */
@media (max-width: 768px) {
    .no-candidates {
        padding: 2.5rem;
    }
    
    .no-candidates i {
        font-size: 3.5rem;
        margin-bottom: 0.875rem;
    }
}

@media (max-width: 480px) {
    .no-candidates {
        padding: 2rem;
    }
    
    .no-candidates i {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .no-candidates h3 {
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 360px) {
    .no-candidates {
        padding: 1.5rem;
    }
    
    .no-candidates i {
        font-size: 2.5rem;
        margin-bottom: 0.625rem;
    }
    
    .no-candidates h3 {
        margin-bottom: 0.3rem;
    }
}

.candidate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Responsive Candidate Actions */
@media (max-width: 768px) {
    .candidate-actions {
        gap: 0.75rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .candidate-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 360px) {
    .candidate-actions {
        gap: 0.5rem;
        margin-top: 1.25rem;
    }
}

/* Responsive Design for Voting and Candidates */
@media (max-width: 768px) {
    .candidates-grid {
        grid-template-columns: 1fr;
    }
    
    .voter-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .candidate-nav {
        flex-direction: column;
    }
    
    .candidate-nav .nav-link {
        justify-content: center;
    }
    
    .voting-actions,
    .candidate-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .status-success,
    .status-pending {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    .candidates-grid {
        gap: 1rem;
    }
    
    .voter-header {
        gap: 0.75rem;
    }
    
    .quick-actions {
        gap: 0.75rem;
    }
    
    .action-card {
        gap: 0.75rem;
    }
    
    .candidate-nav {
        gap: 0.5rem;
    }
    
    .voting-actions,
    .candidate-actions {
        gap: 0.75rem;
    }
    
    .status-success,
    .status-pending {
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .candidates-grid {
        gap: 0.75rem;
    }
    
    .voter-header {
        gap: 0.5rem;
    }
    
    .quick-actions {
        gap: 0.5rem;
    }
    
    .action-card {
        gap: 0.5rem;
    }
    
    .candidate-nav {
        gap: 0.375rem;
    }
    
    .voting-actions,
    .candidate-actions {
        gap: 0.5rem;
    }
    
    .status-success,
    .status-pending {
        gap: 0.5rem;
    }
}

/* Results Page Styles */
.result-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
}

/* Responsive Result Disclaimer */
@media (max-width: 768px) {
    .result-disclaimer {
        padding: 0.875rem;
        margin-top: 0.875rem;
    }
}

@media (max-width: 480px) {
    .result-disclaimer {
        padding: 0.75rem;
        margin-top: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .result-disclaimer {
        padding: 0.625rem;
        margin-top: 0.625rem;
        gap: 0.375rem;
    }
}

.result-disclaimer i {
    color: #f39c12;
}

/* Responsive Result Disclaimer Icon */
@media (max-width: 480px) {
    .result-disclaimer i {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .result-disclaimer i {
        font-size: 1.1rem;
    }
}

.position-results {
    margin-bottom: 3rem;
}

.position-results h3 {
    color: #20B2AA;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #e0f0ff;
    padding-bottom: 0.5rem;
}

/* Responsive Position Results */
@media (max-width: 768px) {
    .position-results {
        margin-bottom: 2rem;
    }
    
    .position-results h3 {
        margin-bottom: 1.25rem;
        font-size: 1.4rem;
        padding-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .position-results {
        margin-bottom: 1.5rem;
    }
    
    .position-results h3 {
        margin-bottom: 1rem;
        font-size: 1.3rem;
        padding-bottom: 0.3rem;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .position-results {
        margin-bottom: 1.25rem;
    }
    
    .position-results h3 {
        margin-bottom: 0.75rem;
        font-size: 1.2rem;
        padding-bottom: 0.25rem;
    }
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Responsive Result Actions */
@media (max-width: 768px) {
    .result-actions {
        gap: 0.75rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .result-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 360px) {
    .result-actions {
        gap: 0.5rem;
        margin-top: 1.25rem;
    }
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

/* Responsive Progress Bar */
@media (max-width: 480px) {
    .progress-bar {
        height: 6px;
        margin-top: 0.4rem;
    }
}

@media (max-width: 360px) {
    .progress-bar {
        height: 5px;
        margin-top: 0.3rem;
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #20B2AA 0%, #48D1CC 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Vote Stats Styles */
.vote-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Responsive Vote Stats */
@media (max-width: 768px) {
    .vote-stats {
        margin: 0.875rem 0;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .vote-stats {
        margin: 0.75rem 0;
        padding: 0.375rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .vote-stats {
        margin: 0.625rem 0;
        padding: 0.25rem;
        gap: 0.375rem;
    }
}

.vote-count {
    font-size: 1.1rem;
    color: #333;
}

.vote-percentage {
    font-weight: 600;
    color: #20B2AA;
    font-size: 1.1rem;
}

/* Responsive Vote Count & Percentage */
@media (max-width: 768px) {
    .vote-count,
    .vote-percentage {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vote-count,
    .vote-percentage {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .vote-count,
    .vote-percentage {
        font-size: 0.9rem;
    }
}

/* ========================================
   LOGO FIX FOR HOSTING ENVIRONMENT
   ========================================
   
   File ini dibuat khusus untuk mengatasi masalah logo yang membesar
   setelah diupload ke hosting. Gunakan !important untuk memastikan
   CSS ini tidak di-override oleh CSS hosting.
*/

/* Reset dan force logo size */
.logo-img,
img.logo-img,
.header .logo img,
.header .logo .logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin-right: 15px !important;
    vertical-align: middle !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}

/* Force logo container size */
.logo,
.header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    height: auto !important;
    min-height: 45px !important;
    max-height: 60px !important;
}

/* Override any hosting CSS that might affect logo */
.logo img,
.logo .logo-img,
.header .logo img,
.header .logo .logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .logo-img,
    img.logo-img,
    .header .logo img,
    .header .logo .logo-img {
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .logo-img,
    img.logo-img,
    .header .logo img,
    .header .logo .logo-img {
        height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
    }
}

/* Force override untuk hosting yang menggunakan CSS reset */
.logo-img {
    box-sizing: content-box !important;
}

/* Override untuk CSS hosting yang mungkin mengatur img secara global */
img.logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
}

/* Tambahan untuk memastikan logo tidak terpengaruh CSS lain */
.header .logo .logo-img,
.admin .header .logo .logo-img,
.student .header .logo .logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
}

/* ========================================
   ULTRA STRONG LOGO FIX FOR HOSTING
   ========================================
   
   File ini dibuat khusus untuk mengatasi masalah logo yang membesar
   setelah diupload ke hosting. Menggunakan selector yang sangat spesifik
   dan !important untuk memastikan tidak ada CSS hosting yang bisa override.
*/

/* Reset global untuk semua img yang mungkin mempengaruhi logo */
body img,
html img,
* img {
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
}

/* Ultra specific logo selectors dengan !important */
body .header .logo img.logo-img,
body .header .logo .logo-img,
body .logo img.logo-img,
body .logo .logo-img,
.header .logo img.logo-img,
.header .logo .logo-img,
.logo img.logo-img,
.logo .logo-img,
img.logo-img,
.logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin-right: 15px !important;
    vertical-align: middle !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 9999 !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
}

/* Force logo container size */
body .header .logo,
body .logo,
.header .logo,
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    height: auto !important;
    min-height: 45px !important;
    max-height: 60px !important;
    overflow: visible !important;
}

/* Override any hosting CSS that might affect logo */
body .header .logo img,
body .logo img,
.header .logo img,
.logo img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
}

/* Responsive fixes dengan selector yang sangat spesifik */
@media (max-width: 768px) {
    body .header .logo img.logo-img,
    body .header .logo .logo-img,
    body .logo img.logo-img,
    body .logo .logo-img,
    .header .logo img.logo-img,
    .header .logo .logo-img,
    .logo img.logo-img,
    .logo .logo-img,
    img.logo-img,
    .logo-img {
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

@media (max-width: 480px) {
    body .header .logo img.logo-img,
    body .header .logo .logo-img,
    body .logo img.logo-img,
    body .logo .logo-img,
    .header .logo img.logo-img,
    .header .logo .logo-img,
    .logo img.logo-img,
    .logo .logo-img,
    img.logo-img,
    .logo-img {
        height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
    }
}

/* Force override untuk hosting yang menggunakan CSS reset */
body .logo-img,
.logo-img {
    box-sizing: content-box !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Override untuk CSS hosting yang mungkin mengatur img secara global */
body img.logo-img,
img.logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
}

/* Tambahan untuk memastikan logo tidak terpengaruh CSS lain */
body .header .logo .logo-img,
body .admin .header .logo .logo-img,
body .student .header .logo .logo-img,
.header .logo .logo-img,
.admin .header .logo .logo-img,
.student .header .logo .logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
}

/* Override untuk CSS framework hosting */
.bootstrap img.logo-img,
.foundation img.logo-img,
.materialize img.logo-img,
.bulma img.logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
}

/* Override untuk CSS reset hosting */
.reset img.logo-img,
.normalize img.logo-img,
.base img.logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
}

/* Force override untuk semua kemungkinan CSS hosting */
*[class*="logo"] img,
*[class*="header"] img,
*[class*="nav"] img {
    max-width: none !important;
    max-height: none !important;
}

/* Specific override untuk logo */
*[class*="logo"] img.logo-img,
*[class*="header"] img.logo-img,
*[class*="nav"] img.logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
}



/* Submit Section */
.submit-section {
    margin-top: 2rem;
    text-align: center;
}



/* Responsive Submit Section */
@media (max-width: 768px) {
    .submit-section {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .submit-section {
        margin-top: 1.25rem;
    }
}

@media (max-width: 360px) {
    .submit-section {
        margin-top: 1rem;
    }
}
