/* Proxima Nova Font Faces */
@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-regular.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-regular.woff.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-medium.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-medium.woff.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-semibold.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-semibold.woff.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-bold.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-bold.woff.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #f8f9fa;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
}

.metric-label {
    font-size: 13px;
    color: #212529;
    margin-bottom: 8px;
}

.metric-label-main {
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.metric-label-sub {
    font-size: 11px;
    color: #6c757d;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.info-icon {
    width: 14px;
    height: 14px;
    border: 1px solid #6c757d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 5px;
    color: #6c757d;
    cursor: pointer;
    position: relative;
}

.info-icon:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.info-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: -77px;
    transform: translateX(0);
    background-color: rgba(13, 13, 13, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: normal;
    max-width: 200px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1.4;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 85px;
    border: 5px solid transparent;
    border-bottom-color: rgba(13, 13, 13, 0.9);
    border-top-color: rgba(13, 13, 13, 0.9);
}

.metric-value {
    font-size: 32px;
    font-weight: 300;
    color: #212529;
    margin: 10px 0;
}

.metric-comparison {
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
}

.trend-positive {
    color: #28a745;
}

.trend-negative {
    color: #dc3545;
}

.trend-detail {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
}

.divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 20px 0;
}

/* Slider Styles */
.slider-container {
    display: flex;
    justify-content: flex-end;
    margin: 45px 0;
    padding-right: 20px;
}

.slider-wrapper {
    width: 60%;
    position: relative;
    padding: 0 60px;
}

.slider-labels-top {
    position: absolute;
    width: 85%;
    top: 0;
    left: 32px;
    height: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
}

.slider-labels-top span:first-child {
    position: absolute;
    left: 0;
}

.slider-labels-top span:last-child {
    position: absolute;
    right: 0;
}

.slider-track {
    width: 100%;
    height: 8px;
    background: #9ca3af;
    border-radius: 4px;
    position: relative;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border: 2px solid #3355b9;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.slider-thumb-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f4fa;
    color: #3355b9;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

.slider-thumb-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #f1f4fa;
}

.slider-labels-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #212529;
    margin-top: 5px;
    font-weight: 600;
    width: 86%;
    position: absolute;
    left: 26px;
}

.slider-labels-bottom span:nth-child(2) {
    flex: 1;
    text-align: center;
}

/* Skeleton Loading */
@keyframes skeleton-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e4e7ec 50%, #f0f2f5 75%);
    background-size: 1200px 100%;
    animation: skeleton-shimmer 1.6s infinite linear;
    border-radius: 4px;
}

.skeleton-label-main {
    height: 13px;
    width: 170px;
    margin-bottom: 7px;
}

.skeleton-label-sub {
    height: 10px;
    width: 110px;
}

.skeleton-slider-container {
    display: flex;
    justify-content: flex-end;
    margin: 45px 0;
    padding-right: 20px;
}

.skeleton-slider-track {
    height: 8px;
    width: 60%;
    border-radius: 4px;
}

.skeleton-comparison {
    height: 13px;
    width: 130px;
    margin-top: 10px;
}

.skeleton-trend {
    height: 10px;
    width: 160px;
    margin-top: 7px;
}

.section-block.loaded .section-skeleton { display: none; }
.section-block:not(.loaded) .section-content { display: none; }
