/* Political Control Widget - Clean & Simple Design */
.political-control-widget {
    width: 380px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px auto;
    box-sizing: border-box;
}

.political-control-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1f2937;
    text-align: center;
    line-height: 1.3;
}

.political-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-period {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.timeline-period:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-period.republican {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.timeline-period.democrat {
    border-left-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.period-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}

.period-years {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.period-party {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.period-party.republican {
    background: #dc2626;
    color: white;
}

.period-party.democrat {
    background: #2563eb;
    color: white;
}

.period-return {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0;
    padding-left: 4px;
}

.period-return .return-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.period-return .return-value {
    font-weight: 600;
    color: #059669;
    margin-left: 4px;
}

.widget-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.widget-footer .disclaimer {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 480px) {
    .political-control-widget {
        width: 100%;
        margin: 15px auto;
        padding: 16px;
    }

    .political-control-widget h3 {
        font-size: 16px;
    }

    .timeline-period {
        padding: 10px;
    }

    .period-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .period-party {
        align-self: flex-end;
    }
}

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.political-control-widget {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-period {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-period:nth-child(1) {
    animation-delay: 0.1s;
}
.timeline-period:nth-child(2) {
    animation-delay: 0.2s;
}
.timeline-period:nth-child(3) {
    animation-delay: 0.3s;
}
.timeline-period:nth-child(4) {
    animation-delay: 0.4s;
}
