/* EVM Demo - Modern UI/UX Design */

/* CSS Variables for Theme */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --success-dark: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Accessibility Classes */
.large-font {
    font-size: 1.2em !important;
}

.high-contrast {
    filter: contrast(1.5);
}

.high-contrast .bg-light {
    background-color: #fff !important;
    border: 2px solid #000 !important;
}

.high-contrast .btn {
    border: 2px solid #000 !important;
}

/* Modern Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
    color: var(--primary-dark) !important;
}

.navbar-brand i {
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Language Toggle */
.language-toggle {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-toggle .btn {
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: calc(var(--border-radius) - 2px);
    transition: var(--transition);
    background: transparent;
    color: var(--gray-600);
}

.language-toggle .btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.language-toggle .btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: var(--gray-800);
}

/* Constituency Selection Section */
.constituency-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50), white);
    position: relative;
}

.constituency-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.constituency-selection-card {
    position: relative;
    z-index: 1;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.constituency-dropdown-container {
    margin: 2rem 0;
}

.constituency-dropdown-container .form-label {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

#constituency-dropdown {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    font-size: 1.1rem;
    transition: var(--transition);
    background: white;
    cursor: pointer;
}

#constituency-dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
}

#constituency-dropdown:hover {
    border-color: var(--primary-light);
}

#start-voting-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 1rem 3rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-width: 200px;
}

#start-voting-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#start-voting-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Social Sharing Section */
.social-sharing-section {
    background: linear-gradient(135deg, var(--gray-50), white);
    position: relative;
}

.social-sharing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.sharing-card {
    position: relative;
    z-index: 1;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sharing-card h3 {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.5rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.social-btn i {
    font-size: 1.1rem;
}

.social-btn span {
    font-size: 0.9rem;
}

/* Individual Social Button Styles */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #0C63D4);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.facebook-btn:hover {
    background: linear-gradient(135deg, #0C63D4, #1877F2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.twitter-btn {
    background: linear-gradient(135deg, #1DA1F2, #0C85D0);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.twitter-btn:hover {
    background: linear-gradient(135deg, #0C85D0, #1DA1F2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.linkedin-btn {
    background: linear-gradient(135deg, #0A66C2, #004182);
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #004182, #0A66C2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

.copy-btn {
    background: linear-gradient(135deg, var(--gray-700), var(--gray-900));
    box-shadow: 0 4px 15px rgba(55, 65, 81, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 65, 81, 0.4);
}

/* Mobile Responsive for Social Sharing */
@media (max-width: 768px) {
    .social-buttons {
        gap: 0.75rem;
    }
    
    .social-btn {
        padding: 0.625rem 1rem;
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    .social-btn i {
        font-size: 1rem;
    }
    
    .sharing-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .sharing-card h3 {
        font-size: 1.3rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out;
}

.hero-section .lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Share Dropdown Styling */
.hero-buttons .dropdown {
    position: relative;
    display: inline-block;
}

.hero-buttons .dropdown-menu {
    min-width: 200px;
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: white;
    z-index: 1000;
}

.hero-buttons .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 0;
    color: var(--gray-700);
}

.hero-buttons .dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
    padding-left: 1.5rem;
}

.hero-buttons .dropdown-item i {
    width: 20px;
    text-align: center;
}

.hero-buttons .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--primary-dark);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* EVM Illustration */
.evm-illustration {
    text-align: center;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.evm-screen {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    border: 2px solid #333;
    position: relative;
    overflow: hidden;
}

.evm-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0f0, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.screen-content {
    color: #0f0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #0f0;
}

/* Instructions Section */
.instructions-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.instruction-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.instruction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.instruction-card:hover::before {
    transform: scaleX(1);
}

.instruction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: var(--transition);
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    z-index: -1;
}

.instruction-card:hover .step-icon {
    transform: scale(1.1);
}

.step-icon-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.step-icon-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.step-icon-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.step-icon-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.instruction-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.instruction-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* EVM Demo Section */
.demo-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50), white);
    position: relative;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.demo-section .container {
    position: relative;
    z-index: 1;
}

/* EVM Machine */
.evm-machine {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    position: relative;
}

.evm-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.evm-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 L10,10 M10,0 L10,20 M20,10 L10,10" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
}

.evm-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.evm-header small {
    opacity: 0.9;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* EVM Table */
.evm-table-container {
    padding: 2rem;
    background: var(--gray-50);
}

.evm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.evm-table th {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--gray-300);
}

.evm-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.evm-table tbody tr {
    transition: var(--transition);
    position: relative;
}

.evm-table tbody tr:hover {
    background: var(--gray-50);
    transform: scale(1.01);
}

.evm-table tbody tr.selected-row {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid var(--success-color);
}

.evm-table tbody tr.selected-row td {
    background: transparent;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

/* Serial Number */
.serial-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.serial-number::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0.3;
    z-index: -1;
}

.evm-table tbody tr:hover .serial-number {
    transform: scale(1.1) rotate(5deg);
}

/* Candidate Photo */
.candidate-photo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.candidate-photo-img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* Party Symbol */
.party-symbol {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
    border: 2px solid var(--gray-300);
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.party-symbol i {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.evm-table tbody tr:hover .party-symbol {
    transform: scale(1.1) rotate(-5deg);
    border-color: var(--primary-color);
}

/* Vote Button */
.evm-vote-btn {
    width: 140px;
    height: 55px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.evm-vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.evm-vote-btn:hover::before {
    left: 100%;
}

.evm-vote-btn.blue-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.evm-vote-btn.blue-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.evm-vote-btn.green-btn {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    animation: pulse-green 2s infinite;
}

.evm-vote-btn.green-btn:hover {
    background: linear-gradient(135deg, var(--success-dark), var(--success-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    }
}

/* Selection Indicator */
.selection-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-400);
    display: inline-block;
    margin-left: 1rem;
    transition: var(--transition);
    position: relative;
}

.selection-indicator.active {
    background: var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    animation: blink 1s infinite;
}

.selection-indicator.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* EVM Display */
.evm-controls {
    padding: 2rem;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.evm-display {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #333;
    position: relative;
    overflow: hidden;
}

.evm-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0f0, transparent);
    animation: scan 3s linear infinite;
}

.evm-display h5 {
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 1rem;
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from { text-shadow: 0 0 10px #0f0; }
    to { text-shadow: 0 0 20px #0f0, 0 0 30px #0f0; }
}

.evm-display p {
    color: #0f0;
    font-family: 'Courier New', monospace;
    opacity: 0.9;
    margin: 0;
}

/* Total Votes Display */
.total-votes-display {
    background: linear-gradient(135deg, var(--gray-50), white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.total-votes-display:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.total-votes-display .badge {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    animation: count-pulse 2s ease-in-out infinite;
}

@keyframes count-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Confirmation Section */
.confirmation-section {
    padding: 5rem 0;
    background: white;
}

.confirmation-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.confirmation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--info-color), var(--primary-color));
}

.confirmation-icon {
    color: var(--success-color);
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: scaleIn 0.8s ease-out 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.vvpat-slip {
    background: linear-gradient(135deg, var(--gray-50), white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 400px;
    box-shadow: var(--shadow);
    position: relative;
    animation: printSlip 0.5s ease-out 0.6s both;
}

.vvpat-slip::before {
    content: '📰';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 1rem;
    font-size: 1.5rem;
}

@keyframes printSlip {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}

/* Educational Section */
.educational-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50), white);
}

.accordion {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.accordion-item {
    border-bottom: 1px solid var(--gray-200);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background: linear-gradient(135deg, var(--gray-50), white);
    color: var(--gray-800);
    font-weight: 600;
    padding: 1.5rem;
    border: none;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Accessibility Panel */
.accessibility-panel {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.accessibility-panel h4 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    border: 2px solid var(--gray-300);
    transition: var(--transition);
}

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

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-check-label {
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
}

.keyboard-guide {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.keyboard-guide h5 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

.keyboard-guide kbd {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    box-shadow: 0 2px 0 var(--gray-400);
    margin: 0 0.25rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: white;
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.3;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 4rem 0 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .instruction-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .evm-table-container {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .evm-table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    
    .evm-table th,
    .evm-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .candidate-photo-img {
        width: 60px;
        height: 60px;
    }
    
    .party-symbol {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .evm-vote-btn {
        width: 100px;
        height: 45px;
        font-size: 0.8rem;
    }
    
    .serial-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .confirmation-card {
        padding: 2rem 1.5rem;
    }
    
    .vvpat-slip {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .evm-display {
        padding: 1.5rem;
    }
    
    .total-votes-display {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .language-toggle {
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .evm-table th:nth-child(3),
    .evm-table td:nth-child(3) {
        display: none;
    }
    
    .evm-machine {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .evm-header h3 {
        font-size: 1.5rem;
    }
    
    .evm-vote-btn {
        width: 80px;
        height: 40px;
        font-size: 0.7rem;
    }
    
    .selection-indicator {
        width: 20px;
        height: 20px;
        margin-left: 0.5rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States */
.btn:focus,
.form-check-input:focus,
.candidate-row:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn {
        display: none !important;
    }
    
    .confirmation-card {
        border: none;
        box-shadow: none;
    }
    
    .evm-machine {
        box-shadow: none;
        border: 1px solid #000;
    }
}
