/* Style untuk Halaman Pemilu OSIM */
.pemilu-container {
    padding: 20px 0;
}

.pemilu-header {
    background: linear-gradient(135deg, #107C41, #0d6334);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid white;
    box-shadow: 0 0 0 4px #107C41, 0 10px 20px rgba(0,0,0,0.1);
}

.pemilu-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.pemilu-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.live-count-section, .candidates-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.live-count-section h3, .candidates-section h3 {
    margin-top: 0;
    color: #107C41;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.live-count-section h3 i, .candidates-section h3 i {
    margin-right: 10px;
}

/* === GRAFIK BATANG BARU (HTML/CSS) === */
.vote-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vote-bar-wrapper {
    width: 100%;
}
.vote-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}
.vote-bar-background {
    width: 100%;
    height: 25px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}
.vote-bar-foreground {
    height: 100%;
    background: linear-gradient(90deg, #22C55E, #16A34A);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}


/* Countdown Timer */
.countdown-container {
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}
.countdown-container h3 {
    margin: 0 0 15px 0;
    border: none;
    font-size: 1.2em;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.5em;
    font-weight: 600;
    color: #107C41;
}
.countdown-timer div {
    display: flex;
    flex-direction: column;
}
.countdown-timer span {
    background: white;
    padding: 10px;
    border-radius: 5px;
}
.countdown-timer div:not(:last-child)::after {
    content: ':';
    font-size: 2em;
    padding: 0 5px;
    line-height: 50px;
}
.debate-finished { font-size: 1.2em; font-weight: bold; color: #DC2626; }


/* Kartu Kandidat (Desktop) */
.candidate-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.candidate-photo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.candidate-info h4, .candidate-info h5 {
    margin: 0 0 10px 0;
}
.candidate-info h4 { font-size: 1.3em; }
.candidate-info h5 { font-size: 1.1em; color: #555; }

.visi-misi {
    font-size: 0.9em;
}
.visi-misi strong {
    color: #107C41;
}
.visi-misi p {
    margin: 5px 0 15px 0;
    line-height: 1.6;
}

/* === RESPONSIVE UNTUK TAMPILAN HP === */
@media (max-width: 992px) {
    .pemilu-header h1 {
        font-size: 1.8em;
    }

    /* Ubah layout utama menjadi 1 kolom */
    .pemilu-main-content {
        grid-template-columns: 1fr;
    }
    
    .candidate-card {
        display: block; 
        padding: 0; 
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .candidate-photo {
        width: 100%; 
        height: auto; 
        border-radius: 8px 8px 0 0; 
        display: block;
    }
    .candidate-info {
        padding: 20px;
    }
}
