:root {
    --voxdata-primary: #2563eb;
    --voxdata-primary-hover: #1d4ed8;
    --voxdata-bg: #ffffff;
    --voxdata-bg-alt: #f8fafc;
    --voxdata-border: #e2e8f0;
    --voxdata-text: #1e293b;
    --voxdata-text-muted: #64748b;
    --voxdata-radius: 12px;
    --voxdata-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.voxdata-poll-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--voxdata-bg);
    border-radius: var(--voxdata-radius);
    box-shadow: var(--voxdata-shadow);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--voxdata-text);
    border: 1px solid var(--voxdata-border);
}

.voxdata-poll-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--voxdata-text);
}

.voxdata-poll-description {
    text-align: center;
    color: var(--voxdata-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Candidates Grid */
.voxdata-candidates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voxdata-candidate-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--voxdata-border);
    border-radius: var(--voxdata-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--voxdata-bg-alt);
    position: relative;
}

.voxdata-candidate-card:hover {
    border-color: var(--voxdata-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.voxdata-candidate-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.voxdata-candidate-card input[type="radio"]:checked+.voxdata-candidate-info {
    color: var(--voxdata-primary);
}

.voxdata-candidate-card:has(input[type="radio"]:checked) {
    border-color: var(--voxdata-primary);
    background: #eff6ff;
}

.voxdata-candidate-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.voxdata-candidate-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.voxdata-candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voxdata-candidate-details {
    display: flex;
    flex-direction: column;
}

.voxdata-candidate-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.voxdata-candidate-party {
    font-size: 0.85rem;
    color: var(--voxdata-text-muted);
}

/* Additional Options */
.voxdata-additional-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--voxdata-bg-alt);
    border-radius: var(--voxdata-radius);
}

.voxdata-option-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

/* Footer & Button */
.voxdata-poll-footer {
    text-align: center;
}

.voxdata-vote-button {
    background: var(--voxdata-primary);
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.voxdata-vote-button:hover {
    background: var(--voxdata-primary-hover);
}

/* Results */
.voxdata-results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.voxdata-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.voxdata-result-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.voxdata-progress-bar {
    height: 12px;
    background: var(--voxdata-border);
    border-radius: 6px;
    overflow: hidden;
}

.voxdata-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--voxdata-primary), #60a5fa);
    border-radius: 6px;
    transition: width 1s ease-out;
}

.voxdata-result-total {
    font-size: 0.8rem;
    color: var(--voxdata-text-muted);
    text-align: right;
}

.voxdata-total-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--voxdata-border);
    text-align: center;
    font-weight: 600;
    color: var(--voxdata-text-muted);
}

/* Messages */
.voxdata-poll-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.voxdata-poll-message.error {
    color: #ef4444;
}

.voxdata-poll-message.success {
    color: #10b981;
}

/* Responsive */
@media (max-width: 480px) {
    .voxdata-poll-container {
        padding: 1rem;
        margin: 1rem;
    }

    .voxdata-additional-options {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}