/* ═══════════════════════════════════════════
   SALARY ESTIMATOR — Tool-Specific Styles
   ═══════════════════════════════════════════ */

/* ── Range Visualizer ── */
.range-container {
    margin-top: 30px;
    position: relative;
    padding-bottom: 20px;
}

.range-bar-bg {
    width: 100%;
    height: 12px;
    background: var(--bg-surface);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.range-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 1s ease-out;
    border-radius: 10px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.median-marker {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.5s;
}

.median-marker::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

/* ── Bar Chart & Breakdown ── */
.salary-chart-wrapper {
    margin-top: 24px;
    position: relative;
}

#salaryBarChart {
    width: 100%;
    border-radius: var(--radius);
}

.salary-breakdown-card {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.salary-breakdown-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.salary-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.salary-detail-row:last-child {
    border-bottom: none;
}

.salary-detail-row .label {
    color: var(--text-muted);
}

.salary-detail-row .value {
    color: var(--text-bright);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}