/* Font Imports */

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-Thin.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-ThinItalic.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-Light.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-LightItalic.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-Regular.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-RegularItalic.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-RegularItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-Medium.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-MediumItalic.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-Bold.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-BoldItalic.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-Black.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../assets/fonts/Aeonik-BlackItalic.woff2') format('woff2'),
         url('../assets/fonts/Aeonik-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PPEditorialNew';
    src: url('../assets/fonts/PPEditorialNew-Italic.woff2') format('woff2'),
         url('../assets/fonts/PPEditorialNew-Italic.woff') format('woff');
    font-style: italic;
    font-display: swap;
}

/* GENERAL FORMATTING */
html, body {
    font-family: 'Aeonik', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: white;
}

.main-content {
    max-width: 1440px;
    margin: auto;
    padding: 40px 60px;
    width: 100%;
}

/* BASE TEXT */
.dash-text {
    max-width: 100%; 
    margin-bottom: 20px !important; 
    margin: auto;
    padding: 0; 
    text-align: left; 
    line-height: 1.6;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Slightly larger base text */
.heading-text {
    max-width: 100%; 
    margin-bottom: 20px !important; 
    margin: auto;
    padding: 0; 
    text-align: left; 
    line-height: 1.6; 
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* HEADINGS */
h1 {
    font-family: 'Aeonik', sans-serif;
    text-align: center;
    font-size: clamp(1.8rem, 2.3vw, 2.8rem);
    margin: 10px 0;
    padding: 10px 0;
}

h2, h3 {
    font-family: 'Aeonik', sans-serif;
    text-align: center;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    margin: 10px 0;
    padding: 10px 0;
}

/* Slightly larger custom title */
.overview-title {
    font-family: 'Aeonik', sans-serif;
    text-align: left;
    font-size: clamp(4rem, 6vw, 7rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #000000;
    margin-top: 0.1em;
    margin-bottom: 0.6em;
}

/* Titles for graphs (underneath graphs) */
.graph-title {
    max-width: 100%; 
    /* padding-top: 10px; */
    margin : 0px !important;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Descriptions for graphs (underneath graphs) */
.description-text {
    margin-bottom: 20px !important; 
    margin: auto;
    line-height: 1.6; 
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Optional different homepage */
.specific-layout-background {
    background-image: url(''); 
    min-height: 100vh; 
    width: 100%;
    margin: 0; 
    position: absolute; 
    top: 0; 
    left: 0;
    padding: 80px;
}

/* Horizontal thin line */
.hr-line {
    width: 100%;       
    height: 1px;    
    background-color: black !important; 
    border: none;       
    margin: 50px auto; 
    opacity: 1;
}

/* DROPDOWN OPTIONS */
.dropdown-style,
.Select-control {
    font-family: 'Aeonik', sans-serif;
    font-size: .9rem;
    text-transform: uppercase;
    width: 100%;      
    min-width: 220px; 
    
    padding: 1px 8px; 
    margin: 2px auto; 
    line-height: 1.2; 
    
    background-color: transparent;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    position: relative; 
}

/* Modifier: shorter version */
.dropdown-style.shorter {
    max-width: 200px !important;
}

/* Add a manually drawn bottom line */
.dropdown-style::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 90%;
    height: 1px;
    background-color: #000000;
}

/* Ensures dropdowns stack vertically */
.stacked-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    width: 100%;
}

/* Fix Dropdown Row Layout */
.dropdown-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px; 
    width: 100%; 
}

.underline-link {
    text-decoration: none;
}

.underline-link:hover {
    text-decoration: underline !important;
}

/* optional text label to show up above dropdowns */
.dropdown-label {
    font-size: 14px;
    color: #3e3e3e; 
    margin: 0;
    z-index: 10;
    position: absolute; 
    top: -7px; 
    left: 0;
}

/* Selected value (multi-select chips) */
.Select--multi .Select-value {
    background-color: transparent !important;
    border: 1px solid #ccc;
    color: black !important;
}

/* Selected value label text */
.Select--multi .Select-value-label {
    color: black !important;
}

/* Remove the default blue X icon hover background */
.Select--multi .Select-value-icon {
    background-color: transparent !important;
}

/* Optional: Style the dropdown options on hover and selection */
.VirtualizedSelectOption {
    color: black;
}

.VirtualizedSelectFocusedOption {
    background-color: #f0f0f0;
    color: black;
}

.VirtualizedSelectSelectedOption {
    background-color: #e0e0e0;
    color: black;
}

/* GRAPH STYLING */
.dash-graph {
    width: 100% !important;  
    max-width: 100% !important; 
    margin: 0 !important;
    padding-top: 20px !important; 
    padding: 0 !important;
    box-sizing: border-box; 
    overflow: visible !important;
}

/* NAVBAR */
.navbar-container {
    width: 100%;
    max-width: none;
    padding: 12px 20px;
    background-color: #F5F5F5; 
    display: flex;
    align-items: center;
    justify-content: center; 
    transition: all 0.3s ease;
}

/* Enhanced Navbar Styles */
.navbar {
    background-color: #F5F5F5 !important; 
    transition: all 0.3s ease;
    padding: 12px 32px;
}

/* Center Navbar Items */
.nav-menu {
    display: flex;
    justify-content: center; 
    width: 100%; 
}

/* Navbar Links */
.nav-link {
    color: black !important; 
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    margin: 0 8px;
    text-transform: uppercase; 
    text-align: center;
}

/* Underline Effect When Hovering */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: black; 
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 90%; 
}

/* Active/Selected Link */
.nav-link.active {
    border-bottom: 1px solid black; 
    transform: translateY(-2px); 
}

/* Circular toggler for navbar */
.circle-toggler {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #333;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Optional hover effect */
.circle-toggler:hover {
    background-color: #eaeaea;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  }

/* Custom Slider Styles */
.custom-slider .rc-slider-track {
    background-color: #000000 !important; /* Black */
}

.custom-slider .rc-slider-handle {
    border-color: #000000 !important;
    background-color: #000000 !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.custom-slider .rc-slider-handle:hover,
.custom-slider .rc-slider-handle:active,
.custom-slider .rc-slider-handle:focus {
    border-color: #000000 !important;
    background-color: #000000 !important;
    box-shadow: none !important;
    outline: none !important;
    border-width: 0 !important;
}

.custom-slider .rc-slider-handle::before,
.custom-slider .rc-slider-handle::after {
    display: none !important;
}

.custom-slider .rc-slider-rail {
    background-color: #d9d9d9 !important;
}

.custom-slider .rc-slider-mark-text {
    color: #000000 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* Smaller slider container */
.custom-slider {
    padding: 10px 0 !important;
    margin: 10px 0 !important;
}

.custom-slider .rc-slider-handle {
    width: 12px !important;
    height: 12px !important;
}

.custom-slider .rc-slider-dot {
    background-color: #000000 !important;
    border-color: #000000 !important;
    border-width: 0 !important;
}

.custom-slider .rc-slider-dot-active {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

/* OVAL BUTTONS */
/* Buttons */
button, input, select {
    font-family: 'Aeonik', sans-serif;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* transparent oval buttons */
.transparent-pill-button {
    background-color: transparent !important;
    border: 1px solid black !important;
    border-radius: 50px !important; 
    color: black !important;
    font-size: 0.9rem !important;
    padding: 6px 16px !important; 
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    outline: none !important; 
    text-transform: uppercase;
}

/* Hover effect (optional) */
.transparent-pill-button:hover {
    background-color: rgba(0, 0, 0, 0.1) !important; 
    color: black !important;
    border-color: black !important;
    box-shadow: none !important; 
}

/* Prevent blue outline in Safari/Firefox */
.transparent-pill-button::-moz-focus-inner {
    border: none !important;
}

.transparent-pill-button.active {
    background-color: #000000!important;  
    color: white !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}

/* OVAL (DARK) BUTTONS */
.reset-pill-button {
    background-color: #000000 !important; 
    color: white !important;
    border: 1px solid black !important;
    border-radius: 50px !important; 
    font-size: 0.9rem !important;
    padding: 6px 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    outline: none !important;
    text-transform: uppercase;
    display: inline-block;
}

/* Hover effect */
.reset-pill-button:hover {
    background-color: #1a1a1a !important; 
    color: white !important;
    border-color: black !important;
    box-shadow: none !important;
}

/* Clicked (active) state */
.reset-pill-button.active {
    background-color: white !important;
    color: black !important;
    border-color: black !important;
    box-shadow: none !important;
}

/* Prevent blue outline in Safari/Firefox */
.reset-pill-button::-moz-focus-inner {
    border: none !important;
}

/* CHECKBOX STYLING (ROW) */
.checkbox-style {
    font-family: 'Aeonik', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;  
    flex-wrap: wrap; 
    gap: 15px;  
    align-items: center;
    justify-content: flex-start; 
    padding: 5px 10px; 
    background-color: #F5F5F5 !important; 
    color: black !important; 
    border: none !important;
    font-weight: 500;
    margin-bottom: 10px!important;
}

/* checkbox labels */
.checkbox-style label {
    display: flex;
    align-items: center; 
    cursor: pointer;
    gap: 10px; 
    padding: 5px 10px;
    background-color: #F5F5F5 !important; 
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

/* Hover effect on checkboxes */
.checkbox-style label:hover {
    background-color: rgba(0, 0, 0, 0.1) !important; 
}

/* Style the actual checkboxes */
.checkbox-style input[type="checkbox"] {
    width: 16px; 
    height: 16px;
    accent-color: black; 
    margin-right: 8px; 
    vertical-align: middle;
}

/* Ensure text stays aligned with checkboxes */
.checkbox-style label span {
    color: black;
    font-size: 0.9rem;
    line-height: 1; 
}

/* SLIDERS */
.slider-style {
    width: 200px;
    margin: auto;
}

/* Slider Handle (Circle) */
.slider-style .rc-slider-handle {
    background-color: #000000 !important;
    width: 14px !important;
    height: 14px !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.slider-style .rc-slider-rail {
    background-color: #D9D9D9 !important;
    height: 1px !important;
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
}

/* Move slider marks (numbers) above the slider */
.slider-style .rc-slider-mark {
    top: -25px !important;  
}

/* Default slider mark text (unselected) */
.slider-style .rc-slider-mark-text {
    color: #8f8f8f !important; 
    font-size: 14px !important;
    transition: color 0.2s ease-in-out;  
}

/* Selected slider mark text */
.slider-style .rc-slider-mark-text-active {
    color: #000000 !important;  
    font-weight: bold !important;
}

.slider-style .rc-slider-dot {
    background-color: #D9D9D9 !important;  
    border: 0px solid #D9D9D9 !important;  
    width: 8px !important;  
    height: 8px !important; 
    border-radius: 50% !important;  
    box-shadow: none !important; 
}

/* Default (larger screens) */
.slider-container {
    display: flex;
    align-items: center!important;
    gap: 10px;
    width: 70%;
    margin-top: 15px;
}

/* HELP BUTTON */
.help-button {
    background-color: black !important; 
    color: white !important; 
    border: 1px solid black !important; 
    border-radius: 50% !important; 
    font-family: 'PPEditorialNew';
    font-size: 1rem !important; 
    font-style: italic;
    padding: 10px !important; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important; 
    height: 40px !important; 
    transition: all 0.2s ease-in-out;
    min-width: 40px !important; 
    min-height: 40px !important; 
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
}

/* Hover Effect */
.help-button:hover {
    background-color: white !important;
    color: black !important;
    border: 1px solid black !important;
}

/* Active/Clicked Effect */
.help-button.active {
    background-color: white !important;
    color: black !important;
    border: 1px solid black !important
}

/* Help Button Container */
.help-container {
    position: relative;   
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 5px; 
}

.help-button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.explanation-popover {
    position: absolute;
    top: 100%; 
    left: 50%; 
    z-index: 1000;
    width: 90vw; 
    max-width: 600px; 
    min-height: fit-content; 
    height: auto; 
    font-size: 0.9rem; 
    font-weight: 400;
    line-height: 1.5;
    padding: 20px 24px; 
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    overflow: hidden; 
    white-space: normal; 
    word-wrap: break-word;
    text-align: left;  
}

/* RADIO CHECKLISTS */
.radio-container {
    display: flex;
    flex-wrap: wrap;  
    justify-content: center;  
    align-items: center; 
    text-align: center;  
    gap: 20px;  
    margin: 0 auto 25px auto;  
    padding: 10px 15px; 
    width: 100%;  
    background-color: #bbc7a1;
    border-radius: 12px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
    max-width: 600px;  
}

/* radio button styling */
.radio-style {
    font-size: 1rem;
    font-family: 'Aeonik', sans-serif;
    display: flex;  
    align-items: center;  
    justify-content: center; 
    text-align: center;  
    width: auto;
}


/* Make checkboxes and radio buttons black */
input[type="radio"], 
input[type="checkbox"] {
    accent-color: black !important; 
}

/* Remove default blue focus outline */
input[type="radio"]:focus, 
input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove tap highlight on mobile */
button, input, select {
    -webkit-tap-highlight-color: transparent;
}


/* MOBILE VERSION */
@media screen and (max-width: 768px) {

    .main-content {
        padding: 10px 10px;
        width: 100%;
    }

    .dash-text {
        max-width: 100%;
        font-size: 0.95rem;
        margin-bottom: 20px; 
    }

    .heading-text {
        max-width: 100%;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .overview-title {
        padding: 5px 0;
        font-size: clamp(2.5rem, 3.5vw, 4.5rem);
    }

    .graph-title {
        font-size: 14px;
    }

    .description-text {
        font-size: 14px;
    }

    h2, h3 {
        font-size: 1.3rem; 
        margin: 6px 0;
        padding: 6px 0;
    }

    .dash-graph {
        width: 100vw !important;
        max-width: 100% !important;
        margin: 0 -20px !important;
        padding: 0 !important;
    }

    /* Mobile chart container with reduced margins */
    .dash-graph-container {
        flex-direction: column;
        align-items: center;
        padding: 0 !important;
        margin: 0 -10px !important;
        width: 100vw !important;
    }

    .dropdown-style, .Select-control {
        width: 90% !important; 
        max-width: 95% !important; 
        min-width: 200px !important; 
        font-size: 0.9rem !important; 
        margin: 5px auto 0 auto; 
    }

    .help-container {
        text-align: center;
        padding: 10px;
    }

    .help-button {
        font-size: 0.8rem !important;  
        padding: 3px !important;  
        width: 30px !important;        
        height: 30px !important;      
        min-width: 30px !important;   
        min-height: 30px !important;   
    }

    .explanation-popover {
        transform: translateX(-90%); 
        max-width: 80vw;           
    }

    .navbar-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 15px;
    }

    .navbar-logo img {
        height: 40px; 
    }

    .navbar-subtitle {
        font-size: 0.9rem;
    }

    .nav-link::after {
        left: 20%;
    }

    .nav-link:hover::after {
        width: 40%; 
    }

    .radio-container {
        width: 95%; 
        padding: 10px;  
        gap: 5px;  
        margin-bottom: 15px; 
    }

    .radio-style {
        font-size: 0.9rem;
        align-items: center; 
    }

    .transparent-pill-button {
        font-size: 0.9rem !important;
        padding: 4px 10px !important; 
    }

    .reset-pill-button {
        font-size: 0.9rem !important;
        padding: 4px 10px !important;
    }
    
    .heading-text {
        max-width: 100%;
    }

    .slider-container {
        width: 100%; 
    }

    .slider-style {
        width: 100%; 
    }

    .toggle-button {
        position: relative !important;
        margin-top: 10px !important;
    }

    .dropdown-label {
        display: none;
    }

    .hr-line {
        margin: 25px auto; 
    }

    .checkbox-style {
        font-size: 0.7rem !important;
    }
    
    .checkbox-style {
        display: flex;
        flex-wrap: wrap;
        gap: 3px 8px; 
        padding: 0 !important;
        margin: 0 !important;
        background-color: #f5f5f5;
        padding: 8px !important;
        margin: 0 0px 16px 0px !important; 
    }
    
    .checkbox-style label {
        margin: 0 !important;
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: left !important;
    }

    .checkbox-style input[type="checkbox"] {
        margin: 0 6px 0 0 !important;
        padding: 0 !important;
        height: 14px;
        width: 14px;
    }

    .navbar-container {
        padding: 0 !important;
    }

    #navbar-collapse {
        width: 100% !important;
    }

    .nav-menu {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding-left: 0px !important;
        width: 100% !important;
    }

    .nav-item {
        width: 100% !important;
    }

    .nav-link {
        text-align: left !important;
        width: 100% !important;
        padding-left: 0 !important;
    }

    .cluster-nav-section {
        justify-content: center !important;
        margin-top: 16px!important;
    }

    .dropdown-style.shorter {
        min-width: 240px !important;
    }

    /* Mobile-specific metric cards - stack vertically */
    .metric-cards-container {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px 10px !important;
    }

    .metric-card {
        min-width: auto !important;
        width: 95% !important;
        margin: 0 auto !important;
    }

    /* Mobile slider controls - stack vertically */
    .slider-controls-container {
        flex-direction: column !important;
        padding: 15px 10px !important;
    }

    .slider-control {
        width: 100% !important;
        margin-bottom: 20px !important;
        margin-right: 0 !important;
    }

    /* Reduce slider marks on mobile */
    .mobile-slider-reduced-marks .rc-slider-mark-text:nth-child(2n) {
        display: none !important;
    }
}    