:root {
    --modi-color: #ff9933;
    /* Saffron */
    --rahul-color: #007bff;
    /* Blue */
    --bg-color: #f4f4f9;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--text-color);
    padding-bottom: 80px;
    /* Space for sticky footer ad */
}


/* official badge */
.authority-banner {
    background: #002147;
    /* Deep Official Blue */
    color: #ffd700;
    /* Gold text */
    padding: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.authority-banner strong {
    color: #fff;
    font-weight: 600;
}

.trust-seal {
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 5px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 20px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.survey-notice {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.survey-notice p {
    margin: 0;
    text-align: center;
}

/* Ad Placeholders */
.ad-slot {
    background: #e9e9e9;
    border: 1px dashed #ccc;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    font-size: 0.8rem;
}

.ad-top {
    width: 100%;
    max-width: 320px;
    height: 100px;
}

.ad-native {
    width: 100%;
    max-width: 300px;
    height: 250px;
}

.ad-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Voting Arena */
.vs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}

.candidate-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 45%;
    min-width: 180px;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
}

.candidate-card:active {
    transform: scale(0.95);
}

.candidate-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #ddd;
}

.modi-card .candidate-img {
    border-color: var(--modi-color);
}

.rahul-card .candidate-img {
    border-color: var(--rahul-color);
}

.btn-vote {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.btn-modi {
    background: var(--modi-color);
}

.btn-rahul {
    background: var(--rahul-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Progress Bars */
.progress-container {
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
}

.progress-wrapper {
    margin-bottom: 15px;
    text-align: left;
}

.label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
}

.label span:last-child {
    font-size: 1.1rem;
    color: #333;
}

.bar-bg {
    background: #ddd;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1s ease-out;
}

.bg-modi {
    background: var(--modi-color);
}

.bg-rahul {
    background: var(--rahul-color);
}

/* Total Votes Summary */
.total-votes-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: center;
}

.summary-item {
    display: inline-block;
    margin: 8px 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
}

.summary-label {
    color: #666;
    margin-right: 5px;
}

.summary-value {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin: 0 5px;
}

.summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
    font-size: 1.1rem;
    color: #333;
}

.summary-total strong {
    color: #007bff;
    font-size: 1.2rem;
}

.summary-total span {
    font-size: 1.4rem;
    color: #28a745;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 85%;
    max-width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content input[type="text"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    /* Important for padding */
}

.checkbox-group {
    margin: 15px 0;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin: 12px 0;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    color: #333;
    user-select: none;
}

.btn-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.share-status {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    color: #856404;
    display: none;
}

/* Recent Voters */
.recent-voters-container {
    margin-top: 25px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 0;
}

.recent-voters-marquee {
    display: inline-flex;
    gap: 12px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.recent-voters-marquee:hover {
    animation-play-state: paused;
}

.voter-badge {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-right: 12px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Fallback for browsers that don't support animation */
@supports not (animation: marquee) {
    .recent-voters-marquee {
        overflow-x: auto;
        scroll-behavior: smooth;
    }
}

/* Share Buttons */
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.share-btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    margin-top: 40px;
}

footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border: 1px solid #007bff;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s;
}

footer a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Share to Unlock Overlay */
.lock-screen {
    display: none;
}