/* theme.css — moved from index.php inline <style> */
:root {
    --primary: #4e54c8;
    --secondary: #8f94fb;
    --success: #2ecc71;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Vote Page Specific Styles */
.vote-page-body {
    background: linear-gradient(135deg, var(--light) 0%, #f8f9fa 100%);
}

.vote-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.vote-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIgZD0iTTAgNjI1TDEyMjUgODAwTDEyMDAgMEwwIDYyNVoiPjwvcGF0aD48L3N2Zz4=');
    opacity: 0.1;
}

.vote-candidate-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.vote-candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.vote-candidate-card.selected {
    outline: 3px solid var(--success);
}

.vote-candidate-image {
    height: 250px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.vote-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vote-btn:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.vote-selection-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.vote-candidate-card.selected .vote-selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.vote-candidate-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.vote-modal-content {
    border-radius: 15px;
    border: none;
}

/* Thank You Animation */
.vote-thank-you-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.vote-thank-you-content {
    text-align: center;
    color: white;
    transform: scale(0.8);
    opacity: 0;
    animation: voteThankYouAnim 1s ease forwards;
}

@keyframes voteThankYouAnim {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vote-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--success);
    opacity: 0;
    animation: voteConfettiFall 1.5s ease forwards;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: none !important;
}

@keyframes voteConfettiFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(180deg);
        opacity: 0;
    }
}

#envelope-animation {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.envelope-container {
    text-align: center;
    color: white;
}

.envelope {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    position: relative;
    margin: 0 auto 10px;
}

.ballot-icon {
    font-size: 150px;
    color: white;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: none !important;
}
