:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 900px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; padding: 20px; }
}

.poll-section, .chart-section {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    grid-column: 1 / -1;
    color: #1a252f;
    border-bottom: 2px solid #eef2f3;
    padding-bottom: 15px;
}

.question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #34495e;
    line-height: 1.5;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 5px;
}

.option-item input[type="radio"] {
    display: none;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.option-item input[type="radio"]:checked + .option-label {
    border-color: currentColor;
    background: rgba(0, 0, 0, 0.02);
    font-weight: 700;
}

.party-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 15px;
    display: inline-block;
    flex-shrink: 0;
}

.vote-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: background 0.2s;
}

.vote-btn:hover { background: #219653; }

.vote-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 220px;
    height: 220px;
    position: relative;
}

.pure-svg-chart {
    transform: rotate(-90deg);
    border-radius: 50%;
}

.results-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.result-info {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.progress-bar-bg {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.already-voted-msg {
    display: none;
    background: #e8f8f5;
    color: #117a65;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #a3e4d7;
}

.total-votes {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #7f8c8d;
}