/**
 * KPPIT e-Voting Public Styles - Enterprise Edition
 * Matching KPPIT Attendance design system
 */

/* CSS Variables */
:root {
    --evoting-primary: #6366f1;
    --evoting-primary-dark: #4f46e5;
    --evoting-secondary: #8b5cf6;
    --evoting-success: #10b981;
    --evoting-warning: #f59e0b;
    --evoting-danger: #ef4444;
    --evoting-info: #3b82f6;
    --evoting-dark: #1e293b;
    --evoting-gray: #64748b;
    --evoting-light: #f8fafc;
    --evoting-border: #e2e8f0;
    --evoting-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --evoting-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --evoting-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --evoting-radius: 12px;
    --evoting-radius-lg: 16px;
    --evoting-radius-xl: 20px;
}

/* ========================================
   GENERAL STYLES
   ======================================== */
.kppit-voting-booth,
.kppit-results-display,
.kppit-nomination-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.kppit-notice {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--evoting-light) 0%, #fff 100%);
    border-left: 4px solid var(--evoting-primary);
    border-radius: var(--evoting-radius);
    box-shadow: var(--evoting-shadow);
    margin: 15px 0;
}

/* ========================================
   MESSAGES
   ======================================== */
.voting-message,
.results-message,
.nomination-message {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, var(--evoting-light) 0%, #fff 100%);
    border-radius: var(--evoting-radius-xl);
    box-shadow: var(--evoting-shadow-lg);
}

.voting-message.error,
.nomination-message.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.voting-message.error::before,
.nomination-message.error::before {
    content: '⚠️';
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
}

.voting-message.success,
.nomination-message.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.voting-message.success::before,
.nomination-message.success::before {
    content: '✓';
    display: flex;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--evoting-success), #34d399);
    color: #fff;
    border-radius: 50%;
    font-size: 40px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.voting-message h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--evoting-dark);
}

.voting-message p {
    color: var(--evoting-gray);
    font-size: 16px;
    margin: 0;
}

/* ========================================
   HEADERS
   ======================================== */
.voting-header,
.results-header,
.nomination-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--evoting-dark) 0%, #334155 100%);
    border-radius: var(--evoting-radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--evoting-shadow-xl);
}

.voting-header::before,
.results-header::before,
.nomination-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.voting-header h2,
.results-header h2,
.nomination-header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.voting-header p,
.results-header p,
.nomination-header p {
    position: relative;
    z-index: 1;
}

.voter-info {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    margin: 10px 0 0;
}

.voter-info strong {
    color: #fff;
}

.deadline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
}

.deadline::before {
    content: '⏰';
}

.election-date {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 5px 0 0;
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.voting-progress {
    background: #fff;
    border-radius: var(--evoting-radius-lg);
    padding: 20px 25px;
    margin-bottom: 30px;
    box-shadow: var(--evoting-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.voting-progress p {
    margin: 0;
    font-weight: 600;
    color: var(--evoting-dark);
    white-space: nowrap;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: var(--evoting-border);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--evoting-primary), var(--evoting-success));
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar .progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   POSITION SECTION
   ======================================== */
.position-section {
    background: #fff;
    border-radius: var(--evoting-radius-xl);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--evoting-shadow-lg);
    border: 1px solid var(--evoting-border);
    transition: box-shadow 0.3s ease;
}

.position-section:hover {
    box-shadow: var(--evoting-shadow-xl);
}

.position-section h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--evoting-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.position-section h3::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(135deg, var(--evoting-primary), var(--evoting-secondary));
    border-radius: 3px;
}

.position-desc {
    color: var(--evoting-gray);
    margin: 0 0 25px;
    font-size: 14px;
    padding-left: 17px;
}

/* ========================================
   CANDIDATES GRID
   ======================================== */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.candidate-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.candidate-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.candidate-card .card-content {
    background: linear-gradient(135deg, var(--evoting-light) 0%, #fff 100%);
    border: 2px solid var(--evoting-border);
    border-radius: var(--evoting-radius-lg);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.candidate-card:hover .card-content {
    border-color: var(--evoting-primary);
    box-shadow: var(--evoting-shadow-lg);
    transform: translateY(-5px);
}

.candidate-card input:checked + .card-content {
    border-color: var(--evoting-success);
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), var(--evoting-shadow-lg);
}

.candidate-card input:checked + .card-content::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--evoting-success), #34d399);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Multi-vote Styles */
.vote-instruction {
    margin: -5px 0 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--evoting-radius);
    color: #1e40af;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vote-counter {
    font-weight: 600;
    color: var(--evoting-primary);
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Disabled state when max selections reached */
.candidate-card.is-disabled {
    pointer-events: none;
}

.candidate-card.is-disabled .card-content {
    opacity: 0.5;
    filter: grayscale(50%);
    border-color: var(--evoting-border);
    box-shadow: none;
    transform: none;
}

/* Selected state for checkbox (same as checked) */
.candidate-card.is-selected .card-content {
    border-color: var(--evoting-success);
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), var(--evoting-shadow-lg);
}

.candidate-card.is-selected .card-content::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--evoting-success), #34d399);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    animation: checkPop 0.3s ease;
}

/* Highlight error */
.position-section.highlight-error {
    animation: highlightError 0.5s ease;
}

.position-section.highlight-error h3 {
    color: var(--evoting-danger);
}

@keyframes highlightError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.candidate-avatar {
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

.candidate-avatar img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--evoting-shadow-lg);
    transition: transform 0.3s ease;
}

.candidate-card:hover .candidate-avatar img {
    transform: scale(1.05);
}

.candidate-info .name {
    display: block;
    font-weight: 700;
    font-size: 17px;
    color: var(--evoting-dark);
    margin-bottom: 4px;
}

.candidate-info .id {
    display: block;
    font-size: 13px;
    color: var(--evoting-gray);
    margin-bottom: 10px;
}

.candidate-info .manifesto {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--evoting-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    background: var(--evoting-light);
    padding: 10px 12px;
    border-radius: 8px;
}

.no-candidates {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--evoting-gray);
    background: var(--evoting-light);
    border-radius: var(--evoting-radius);
}

.no-candidates::before {
    content: '🗳️';
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
}

/* ========================================
   VOTING ACTIONS
   ======================================== */
.voting-actions {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--evoting-light) 0%, #fff 100%);
    border-radius: var(--evoting-radius-xl);
    box-shadow: var(--evoting-shadow);
}

.btn-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 60px;
    background: linear-gradient(135deg, var(--evoting-success), #34d399);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-vote::before {
    content: '🗳️';
    font-size: 24px;
}

.btn-vote:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.btn-vote:active {
    transform: translateY(-2px);
}

.btn-vote:disabled {
    background: var(--evoting-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-vote:disabled::before {
    content: '⏳';
}

/* Vote Result Message */
.vote-result {
    margin-top: 25px;
    padding: 25px;
    border-radius: var(--evoting-radius-lg);
    text-align: center;
}

.vote-result.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.vote-result.success h3 {
    color: var(--evoting-success);
    margin: 0;
    font-size: 20px;
}

.vote-result.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.vote-result.error p {
    color: var(--evoting-danger);
    margin: 0;
}

/* ========================================
   RESULTS DISPLAY
   ======================================== */
.results-summary-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

@media (max-width: 600px) {
    .results-summary-bar {
        grid-template-columns: 1fr;
    }
}

.results-summary-bar .summary-item {
    background: #fff;
    border-radius: var(--evoting-radius-lg);
    padding: 25px;
    text-align: center;
    box-shadow: var(--evoting-shadow);
    transition: transform 0.3s ease;
}

.results-summary-bar .summary-item:hover {
    transform: translateY(-5px);
}

.results-summary-bar .summary-item .number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--evoting-primary), var(--evoting-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.results-summary-bar .summary-item.highlight {
    background: linear-gradient(135deg, var(--evoting-success), #34d399);
}

.results-summary-bar .summary-item.highlight .number {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.results-summary-bar .summary-item.highlight .label {
    color: rgba(255,255,255,0.9);
}

.results-summary-bar .summary-item .label {
    display: block;
    font-size: 14px;
    color: var(--evoting-gray);
    margin-top: 8px;
    font-weight: 500;
}

/* Position Result Card */
.position-result-card {
    background: #fff;
    border-radius: var(--evoting-radius-xl);
    padding: 0;
    margin-bottom: 25px;
    box-shadow: var(--evoting-shadow-lg);
    overflow: hidden;
}

.position-result-card h3 {
    margin: 0;
    padding: 20px 25px;
    font-size: 20px;
    color: var(--evoting-dark);
    background: linear-gradient(135deg, var(--evoting-light) 0%, #fff 100%);
    border-bottom: 2px solid var(--evoting-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.position-result-card h3::before {
    content: '🏆';
    font-size: 22px;
}

.candidates-results {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.candidate-result {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: var(--evoting-light);
    border-radius: var(--evoting-radius);
    transition: all 0.3s ease;
    gap: 15px;
}

.candidate-result:hover {
    background: #fff;
    box-shadow: var(--evoting-shadow);
}

.candidate-result.winner {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    position: relative;
}

.candidate-result .candidate-avatar {
    position: relative;
    margin-right: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.candidate-result .candidate-avatar img {
    width: 65px;
    height: 65px;
    border-width: 3px;
}

.winner-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--evoting-success), #34d399);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.candidate-result .candidate-info {
    flex: 1;
}

.candidate-result .candidate-info .name {
    font-weight: 700;
    font-size: 17px;
    color: var(--evoting-dark);
    display: block;
}

.candidate-result .candidate-info .id {
    font-size: 13px;
    color: var(--evoting-gray);
    display: block;
}

.vote-stats {
    text-align: right;
    min-width: 160px;
}

.vote-stats .vote-bar {
    height: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.vote-stats .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--evoting-primary), var(--evoting-secondary));
    border-radius: 5px;
    transition: width 1s ease-out;
}

.candidate-result.winner .vote-stats .bar-fill {
    background: linear-gradient(90deg, var(--evoting-success), #34d399);
}

.vote-stats .vote-count {
    font-size: 14px;
    color: var(--evoting-gray);
}

.vote-stats .vote-percent {
    font-size: 22px;
    font-weight: 800;
    color: var(--evoting-dark);
    margin-left: 10px;
}

.no-results {
    text-align: center;
    color: var(--evoting-gray);
    padding: 30px;
}

/* ========================================
   NOMINATION FORM
   ======================================== */
.nominator-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--evoting-radius-lg);
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nominator-info::before {
    content: '👤';
    font-size: 30px;
}

.nominator-info p {
    margin: 0;
    color: var(--evoting-dark);
}

.nominator-info strong {
    color: var(--evoting-primary);
}

.nomination-form {
    background: #fff;
    border-radius: var(--evoting-radius-xl);
    padding: 35px;
    box-shadow: var(--evoting-shadow-lg);
}

.nomination-form .form-field {
    margin-bottom: 25px;
}

.nomination-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--evoting-dark);
    font-size: 15px;
}

.nomination-form .required {
    color: var(--evoting-danger);
}

.nomination-form select,
.nomination-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--evoting-border);
    border-radius: var(--evoting-radius);
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.nomination-form select:focus,
.nomination-form textarea:focus {
    outline: none;
    border-color: var(--evoting-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.nomination-form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-actions {
    text-align: center;
    padding-top: 15px;
}

.btn-nominate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 50px;
    background: linear-gradient(135deg, var(--evoting-primary), var(--evoting-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-nominate::before {
    content: '📝';
    font-size: 20px;
}

.btn-nominate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.nomination-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: var(--evoting-radius);
    text-align: center;
}

.nomination-result.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: var(--evoting-success);
}

.nomination-result.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: var(--evoting-danger);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 600px) {
    .kppit-voting-booth,
    .kppit-results-display,
    .kppit-nomination-form {
        padding: 20px 15px;
    }

    .voting-header,
    .results-header,
    .nomination-header {
        padding: 30px 20px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .voting-header h2,
    .results-header h2,
    .nomination-header h2 {
        font-size: 24px;
    }

    .position-section {
        padding: 20px;
    }

    .position-section h3 {
        font-size: 18px;
    }

    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .candidate-card .card-content {
        padding: 20px 15px;
    }

    .candidate-avatar img {
        width: 70px;
        height: 70px;
    }

    .voting-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .progress-bar {
        width: 100%;
    }

    .candidate-result {
        flex-wrap: wrap;
    }

    .vote-stats {
        width: 100%;
        text-align: left;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--evoting-border);
    }

    .btn-vote,
    .btn-nominate {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .voting-actions {
        padding: 20px;
    }

    .nomination-form {
        padding: 25px 20px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.position-section {
    animation: fadeInUp 0.5s ease forwards;
}

.position-section:nth-child(2) { animation-delay: 0.1s; }
.position-section:nth-child(3) { animation-delay: 0.2s; }
.position-section:nth-child(4) { animation-delay: 0.3s; }

.candidate-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.candidate-card:nth-child(1) { animation-delay: 0.1s; }
.candidate-card:nth-child(2) { animation-delay: 0.15s; }
.candidate-card:nth-child(3) { animation-delay: 0.2s; }
.candidate-card:nth-child(4) { animation-delay: 0.25s; }
.candidate-card:nth-child(5) { animation-delay: 0.3s; }
.candidate-card:nth-child(6) { animation-delay: 0.35s; }

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .voting-header,
    .results-header,
    .nomination-header {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .voting-actions,
    .form-actions,
    .btn-vote,
    .btn-nominate {
        display: none !important;
    }

    .position-section,
    .position-result-card,
    .candidate-card .card-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}
