/* ============================================
   INTERACTIVE INCOME INFLATION VISUALIZER
   ============================================ */

/* ============================================
   TAXI METER COMPONENT
   ============================================ */
.meter-section {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 20px;
}

.meter-section h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.meter-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.meter-container {
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: 0 auto;
}

.meter-base {
    width: 100%;
    height: auto;
    display: block;
}

.meter-digits {
    position: absolute;
    left: 150px;
    top: 135px;
    pointer-events: none;
}

.meter-digits img {
    width: 42px;
    height: 49.5px;
    display: inline-block;
    margin-right: 1.5px;
}

.arabic-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arabic-text-img {
    width: 400px;
    height: auto;
    max-width: 100%;
}

.meter-info {
    text-align: center;
}

.meter-info p {
    margin-bottom: 8px;
}

.meter-info .highlight {
    font-weight: bold;
    color: var(--white);
}

/* ============================================
   MAIN LAYOUT GRID
   ============================================ */
.vis-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.vis-area {
    width: 100%;
}

.controls-area {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

#Location1 .vega-embed {
    border: none !important;
}
/* ============================================
   VIEW TOGGLE BUTTONS
   ============================================ */
.view-buttons {
    display: flex;
    gap: 12px;
}

.view-btn {
    flex: 1;
    padding: 12px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    white-space: nowrap;
}

.view-btn.active {
    background: var(--white);
    color: var(--deep-indigo);
}

.view-btn:hover {
    background: var(--white);
    color: var(--deep-indigo);
}

/* ============================================
   CIRCLE VISUALIZATION
   ============================================ */
.circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-container svg {
    max-width: 100%;
    height: auto;
}

.svg-text {
    font-family: 'Courier New', Courier, monospace;
    font-weight: normal;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--white);
}

.legend-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
}

.legend-nominal {
    background: var(--white);
}

.legend-inflation {
    background: transparent;
    border: 2px dashed #ef4444;
}

.legend-real {
    background: #3b82f6;
    opacity: 0.5;
    border-color: #1e40af;
}

/* ============================================
   BAR CHART VISUALIZATION
   ============================================ */
.bars-container {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
}

.bar-row {
    width: 100%;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bar-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

.bar-value {
    font-size: 1.1rem;
    color: var(--white);
}

.bar-visual {
    position: relative;
    width: 100%;
    height: 80px;
    background: #1a1a1a;
    border: 2px solid var(--white);
    overflow: hidden;
    transition: height 0.3s ease;
}

.bar-visual-egypt {
    border-color: #ef4444;
}

.bar-segment {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: width 0.3s ease;
    color: var(--white);
}

.bar-real {
    left: 0;
    background: #3b82f6;
    opacity: 0.7;
}

.bar-loss {
    right: 0;
    background: #60a5fa;
    opacity: 0.3;
}

/* ============================================
   SLIDER CONTROLS
   ============================================ */
.sliders {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.slider-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
}

.slider-value {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--white);
    min-width: 80px;
    text-align: center;
}

.slider-vertical {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 8px;
    height: 384px;
    cursor: pointer;
    background: #60a5fa;
    margin: 0 auto;
}

.slider-vertical::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--deep-indigo);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.slider-vertical::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--deep-indigo);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.slider-vertical::-webkit-slider-runnable-track {
    background: #333;
    height: 4px;
    border-radius: 2px;
}

.slider-unit {
    font-size: 0.75rem;
    color: var(--white);
    opacity: 0.7;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1023px) {
    .vis-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .sliders {
        gap: 48px;
    }
}

@media (max-width: 767px) {
    .meter-section {
        margin-bottom: 48px;
    }
    
    .vis-grid {
        gap: 32px;
    }
    
    .view-buttons {
        flex-direction: column;
    }
    
    .sliders {
        gap: 32px;
    }
    
    .slider-vertical {
        height: 256px;
    }
    
    .legend {
        gap: 16px;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .bars-container {
        gap: 48px;
    }
    
    .bar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}