:root {
    --primary-color: #6200EE;
    --background-color: #f4f5f7;
    --card-background: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.stats-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
    min-width: 160px;
}

.stats-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-light);
}

.stats-card p {
    margin-bottom: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.stats-card.participation p {
    color: var(--primary-color);
}

.results {
    margin-top: 3rem;
}

.candidate-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.candidate-card h3 {
    margin-top: 0;
}

.vote-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.vote-info .percentage {
    font-weight: bold;
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--primary-color);
    height: 100%;
    width: 0%; /* Diatur oleh JavaScript */
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}