/* Cost of Waiting Widget - Dark Theme for Footer */
.cost-waiting-widget {
    width: 300px;
    height: 250px;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 12px;
    color: #e5e5e5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.widget-header {
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* Slider Section */
.slider-section {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.wait-years-slider {
    width: 100%;
    height: 6px;
    background: #374151;
    border-radius: 3px;
    outline: none !important;
    border: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.wait-years-slider:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.wait-years-slider:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.wait-years-slider:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.wait-years-slider::-moz-focus-outer {
    border: 0 !important;
    outline: none !important;
}

.wait-years-slider::-moz-focus-inner {
    border: 0 !important;
    outline: none !important;
}

.wait-years-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #16a34a;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    outline: none !important;
}

.wait-years-slider::-webkit-slider-thumb:focus {
    outline: none !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3) !important;
    border: 2px solid #1a1a1a !important;
}

.wait-years-slider::-webkit-slider-thumb:active {
    outline: none !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3) !important;
    border: 2px solid #1a1a1a !important;
}

.wait-years-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #16a34a;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    outline: none !important;
}

.wait-years-slider::-moz-range-thumb:focus {
    outline: none !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3) !important;
    border: 2px solid #1a1a1a !important;
}

.wait-years-slider::-moz-range-thumb:active {
    outline: none !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3) !important;
    border: 2px solid #1a1a1a !important;
}

.slider-value {
    text-align: center;
    font-size: 13px;
    color: #16a34a;
    font-weight: 600;
    margin-top: 6px;
}

/* Chart Section */
.chart-section {
    margin-bottom: 10px;
    height: 70px;
    position: relative;
    flex-shrink: 0;
}

.cost-waiting-widget .chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    padding: 0 15px;
    background: #0f0f0f;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.cost-waiting-widget .chart-bar {
    width: 45px;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    border-radius: 3px 3px 0 0;
    position: relative;
    min-height: 15px;
    transition: none !important;
    animation: none !important;
}

.cost-waiting-widget .chart-bar * {
    transition: none !important;
    animation: none !important;
}

.cost-waiting-widget .chart-bar.waiting {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

.cost-waiting-widget .bar-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
    transition: none !important;
    animation: none !important;
}

.cost-waiting-widget .bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #e5e5e5;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: none !important;
    animation: none !important;
}

/* Summary Section */
.summary-section {
    text-align: center;
    background: #262626;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #404040;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cost-highlight {
    font-size: 15px;
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.1;
}

.cost-description {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.3;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
}

.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #374151;
    border-top: 2px solid #16a34a;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 320px) {
    .cost-waiting-widget {
        width: 280px;
        padding: 15px;
    }

    .widget-title {
        font-size: 14px;
    }

    .chart-bar {
        width: 50px;
    }
}

/* Accessibility */
.wait-years-slider:focus {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Animation */
.chart-bar {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
