@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, Arial, Helvetica, sans-serif !important;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 60px;
    height: 100vh;
    background: white;
    border-right: 1px solid #e5e5e7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar.expanded {
    width: 200px;
}

a.sidebar-icon {
    text-decoration: none;
    height: 50px;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    margin: 2px 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 18px;
    width: 100%;
    position: relative;
}

.sidebar-icon:hover {
    opacity: 1;
    background: #ececec;
    border-radius: 0;
}

.sidebar-icon span {
    margin-right: 15px;
    min-width: 24px;
    text-align: center;
    display: flex;
}

.sidebar-label {
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.sidebar.expanded .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

.hamburger {
    margin-bottom: 10px;
}

.main-content {
    padding: 0;
}

.main-content.expanded {
    margin-left: 200px;
}

.header {
    background: white;
    padding: 15px 20px 10px;
    border-bottom: 1px solid #e5e5e7;
    display: flex;
    align-items: left;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.2s ease;
    flex-direction: column;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.logo {
    width: 32px;
    height: 32px;
    background: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.stacked-layer .branding{
    display: flex;
    gap:10px;
    align-content: center;
}
.hamburger-menu {
    align-content: center;
    padding: 4px 6px;
    display: flex;

}
.hamburger-menu:hover{
    cursor: pointer;
    background: #ececec;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header-text {
    font-size: 16px!important;
    font-weight: 500 !important;
}

.hero-section {
    background: linear-gradient(135deg, rgba(57, 105, 182, 0.9) 0%, rgba(162, 126, 75, 0.3) 80%),
        url('../images/hero-child.png') top right/cover no-repeat;
    padding: 60px 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding: 0 30px;
}

.hero-text {
    max-width: 60%;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-image {
    display: none;
}

p {margin: 4px 0 20px}

/* Landing page Card Layout*/

.landing .cards-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.landing .card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.landing .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.landing .card-icon {
    position: relative;
    margin: 8px 10px 8px 15px;
    float: right;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.landing .card-icon img{
    width:85px;
    height:85px;
}

.landing .card h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
    margin-right: 80px;
    line-height: 1.6rem;
}

.landing .card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4rem;
    font-size: 1rem;
    font-family: roboto;
}

.landing .learn-more, .legend-popup, #overview-panel a{
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.landing .learn-more:hover {
    text-decoration: underline;
}

.minderoo-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #ffd93d;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.un-logo {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #00a8e6;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}


/* Evidence Content */

.header .stacked-layer {
    display: flex;
    flex-direction: row;
}   
.header .header-text {
        line-height: 1.95rem;
        letter-spacing: .5px;
    }
.header .school {
        font-weight:400;
        letter-spacing: 0;
    }
.header .header-text a{
    text-decoration: none;
    color:#111;
}

.nav-tabs {
    background: white;
    padding-left: 34px;
}

.nav-tab {
    padding: 5px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 44px;
    margin: 5px;
    text-decoration: none;
}

.nav-tab.active {
    color: #333;
    border-bottom-color: #e3d1a8;
    background: #e3d1a8;
}

#navTabs2 .nav-tab {
    border-radius: 0;
    padding: 12px 26px;
    font-size: 12px;
}
#navTabs2 .nav-tab.active {
    color: #333;
    border-bottom: 2px solid red;
    background: transparent;
}

.nav-tab:hover {
    background: #f0f0f0;
}

.cards-container{
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
}
.evidence-detail .cards-container{
    display:flow;
}
.chemical-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.chemical-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.chemical-tab.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    /*font-weight: 600;*/
}
.chemical-panel#overview-panel{
    background: linear-gradient(203deg, rgba(255, 255, 255, .6) 0%, rgba(253, 253, 253, 0.3) 80%), url(../images/hero-child2.jpg) top right / cover no-repeat;
    padding: 30px 20px;
    height: 44vh;
    border-radius: 16px;
}

.chemical-panel#overview-panel p {
    text-shadow: 1px 0px 5px  #fff;
}

/* Left Content */
.left-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chemical-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.evidence-detail .legend {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    flex-direction: unset;
 
}
.legend {
    display: flex;
    gap: 11px;
    margin-bottom: 5px;
    flex-direction: column;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.legend-dot.strong {
    background: #f4523e;
    height: 25px;
    width: 25px;
}

.legend-dot.moderate {
    background: #febe11;
    height: 25px;
    width: 25px;
}
@media (max-width: 768px) {
    .legend-dot, .legend-dot.strong, .legend-dot.moderate  {
        height: 15px;
        width: 15px;
    }  
    .legend {
        gap: 4px;
    }
    @media (max-width: 768px) {
        .info-gear {
            right: 20px !important;
            top: 67px !important;
        } 
    }
    header .stacked-layer {
        .header-text {
            line-height: 1.3rem !important;
            flex-direction: row;
            display: grid;
            font-size: 15px;
            width: 200px;
        }
        .header-text .pipe {
            display:none;
        }
        
    }
    .chemical-panel#overview-panel {
        height: auto;
    }

}

/* Container for the entire legend */
.hv-legend-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between legend items */
    font-family: 'Inter', sans-serif; /* Using Inter as per instructions */
    font-size: 16px;
    color: #4A4A4A; /* Dark grey for text, similar to the image */
}

/* Individual legend item */
.hv-legend-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the color square and the text */
}

/* Color square indicator */
.hv-legend-color-box {
    width: 20px; /* Size of the color square */
    height: 20px;
    border-radius: 4px; /* Slightly rounded corners */
    flex-shrink: 0; /* Prevent the box from shrinking */
}

/* Specific colors for each category */
.hv-legend-color-box.hv-pfas {
    background-color: #BDBDBD; /* Light grey */
}

.hv-legend-color-box.hv-bisphenols {
    background-color: #87CEEB; /* Light blue */
}

.hv-legend-color-box.hv-pcbs {
    background-color: #B2DF8A; /* Light green */
}

.hv-legend-color-box.hv-phthalates {
    background-color: #FFD799; /* Light orange */
}

.hv-legend-color-box.hv-pbdes {
    background-color: #F08080; /* Light red/pink */
}

/* Text label for the legend item */
.hv-legend-label {
    /* No specific styles needed here, inherits from parent */
}


/* Settings Drawer */
.settings-drawer {
    position: fixed;
    top: 0;
    right: -85vw;
    width: 85vw;
    height: 100%;
    background: white;
    z-index: 1999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.settings-drawer.active {
    right: 0;
}

.filter-section.one {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 20px;
}
.filter-section.two {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 20px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    width: 33%;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.filter-select, .filter-range {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.filter-checkbox input {
    margin: 0;
}

.filter-actions {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    /*flex: 1;*/
}

.btn-primary {
    background: #3379b7;
    color: white;
}

.btn-primary:hover {
    background: #c82333;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}
.dashboard-card .btn-secondary
 {
    background: #b8edffc2;
    color: #003c50;
    border-radius: 22px;
    font-size: 12px;
    padding: 8px 24px;
    flex: unset !important;
 }
.btn-secondary:hover {
    background: #e9ecef;
} 

.filter-actions  .btn-primary {
    background: #3379b7;
    color: #fff;
}

.filter-actions  .btn-secondary {
    background: rgb(236, 235, 235);
    color: #3379b7;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .settings-drawer {
        right: 100vw;
        width: 100vw;
    }
}

.chart-container {
    padding: 20px;
    position: relative;
    gap: 1px;
    display: grid
;
}
/* Human Figures */
.human-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 5px;
    align-self: flex-end;
}

.figure-container {
    text-align: center;
    position: relative;
    align-self: flex-end;
}

.figure-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #666;
}

.human-figure {
    width: 120px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.human-figure svg {
    width: 100%;
    height: 100%;
    fill: #f0d7b8;
    stroke: #e0c4a0;
    stroke-width: 1;
}

.health-point {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f4523e;
}

.health-point-moderate {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #febe11;
}

.health-label {
    position: absolute;
    font-size: 11px;
    background: #ffffff85;
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
}

.health-label:hover {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

/* BPAS - Health points positioning for different figures */
/* .adult-female .health-point:nth-child(1) { top: 12%; right: 22px; }
.adult-female .health-point:nth-child(2) { top: 17%; right: 46px; }
.adult-female .health-point:nth-child(3) { top: 22%; right: 46px; }
.adult-female .health-point:nth-child(4) { top: 27%; right: 70px; }
.adult-female .health-point:nth-child(5) { top: 33%; right: 70px; }
.adult-female .health-point:nth-child(6) { top: 39%; right: 38px; }
.adult-female .health-point:nth-child(7) { top: 44%; right: 31px; }

.adult-male .health-point:nth-child(1) { top: 25%; right: -8px; }
.adult-male .health-point:nth-child(2) { top: 16%; right: 46px; }
.adult-male .health-point:nth-child(3) { top: 21%; right: 45px; }
.adult-male .health-point:nth-child(4) { top: 27%; right: 70px; }
.adult-male .health-point:nth-child(5) { top: 33%; right: 70px; }
.adult-male .health-point:nth-child(6) { top: 40%; right: 33px; }
.adult-male .health-point:nth-child(7) { top: 45%; right: 26px; }

.child .health-point.waist { top: 46%; left: 97px; }
.child .health-point:nth-child(2) { top: 26%; left: 83px; }
.child .health-point:nth-child(3) { top: 39%; left: 94px; }
.infant .health-point { top: 62%; left: 70px; }

.adult-female .health-label.hyper { top: 15%; right: 74px; }
.adult-female .health-label.cardio { top: 21%; right: 75px; }
.adult-female .health-label.diabetes { top: 27%; right: 100px; }
.adult-female .health-label.insulin { top: 33%; right: 100px; }
.adult-female .health-label.obesity { top: 38%; right: 68px; }
.adult-female .health-label.waist { top: 43%; right: 61px; }
.adult-female .health-label.polycystic { top: 54%; left: -40px; }

.adult-male .health-label.hyper { top: 15%; right: 77px; }
.adult-male .health-label.cardio { top: 20%; right: 77px; }
.adult-male .health-label.diabetes { top: 27%; right: 101px; }
.adult-male .health-label.insulin { top: 33%; right: 100px; }
.adult-male .health-label.obesity { top: 40%; right: 62px; }
.adult-male .health-label.waist { top: 45%; right: 54px; }

.child .health-label.cardio { top: 25%; left: -55px; }
.child .health-label.obesity { top: 39%; left: 39px; }
.child .health-label.waist { top: 46%; left: -26px; }
.infant .health-label.anogenital { top: 77%; left: 5px; } */

/* Phthalates - Health points positioning for different figures */
/* #phthalates-panel .adult-female .health-point-moderate.thyroid { top: 12%; right: 57px; }
#phthalates-panel .adult-female .health-point.insulin { top: 33%; right: 70px; }
#phthalates-panel .adult-female .health-point-moderate.obesity { top: 44%; right: 31px; }
#phthalates-panel .adult-female .health-point-moderate.waist { top: 39%; right: 38px; }
#phthalates-panel .adult-female .health-point-moderate.endometriosis { top: 48%; right: 72px; }

#phthalates-panel .adult-male .health-point-moderate.thyroid { top: 12%; right: 63px; }
#phthalates-panel .adult-male .health-point.insulin { top: 33%; right: 70px; }
#phthalates-panel .adult-male .health-point-moderate.obesity { top: 40%; right: 33px; }
#phthalates-panel .adult-male .health-point-moderate.waist { top: 45%; right: 26px; }
#phthalates-panel .adult-male .health-point-moderate.sperm { top: 51%; right: 72px; }

#phthalates-panel .child .health-point-moderate.puberty { top: 1%; left: 72px; }
#phthalates-panel .child .health-point-moderate.iq { top: 6%; left: 50px; }
#phthalates-panel .child .health-point.motor { top: 6%; left: 95px; }
#phthalates-panel .child .health-point-moderate.thyroid { top: 18%; left: 81px; }
#phthalates-panel .child .health-point-moderate.blood { top: 26%; left: 80px; }
#phthalates-panel .child .health-point-moderate.asthma { top: 30%; left: 60px; }
#phthalates-panel .child .health-point.insulin { top:37%; left: 86px; }
#phthalates-panel .child .health-point-moderate.waist { top: 46%; left: 97px; }


#phthalates-panel .infant .health-point:nth-child(2) { top: 2%; left: 70px; }
#phthalates-panel .infant .health-point:nth-child(3) { top: 2%; left: 81px; }
#phthalates-panel .infant .health-point-moderate { top: 51%; left: 37px; }

#phthalates-panel .adult-female .health-label.thyroid { top: 12%; right: 85px; }
#phthalates-panel .adult-female .health-label.insulin { top: 33%; right: 100px; }
#phthalates-panel .adult-female .health-label.obesity { top: 38%; right: 68px; }
#phthalates-panel .adult-female .health-label.waist { top: 43%; right: 61px; }
#phthalates-panel .adult-female .health-label.endometriosis { top: 54%; left: 40px; }

#phthalates-panel .adult-male .health-label.thyroid { top: 12%; right: 89px; }
#phthalates-panel .adult-male .health-label.insulin { top: 33%; right: 100px; }
#phthalates-panel .adult-male .health-label.obesity { top: 40%; right: 62px; }
#phthalates-panel .adult-male .health-label.waist { top: 45%; right: 54px; }
#phthalates-panel .adult-male .health-label.spermquality { top: 56%; right: 0px; }
#phthalates-panel .adult-male .health-label.spermcount { top: 61%; right: 41px; } */

/* #phthalates-panel .angled-line { width: 50px;
    height: 1px;
    background-color: rgb(156 152 152);
    transform: rotate(-26deg);
    transform-origin: left center;
    top: 16%;
    padding: 0;
    box-shadow: none;
    left: 50px;
    position: absolute;
} */
#phthalates-panel .child .health-label.puberty { top: -6%; left: 40px; }
#phthalates-panel .child .health-label.iq { top: 6%; left: -101px; }
#phthalates-panel .child .health-label.motor { top: 4%; left: 119px;text-align:left }
#phthalates-panel .child .health-label.thyroid { top: 18%; left: 110px; }
#phthalates-panel .child .health-label.blood { top: 26%; left: 108px; }
#phthalates-panel .child .health-label.asthma { top: 30%; left: 2px; }
#phthalates-panel .child .health-label.insulin { top: 37%; left: 116px; }
#phthalates-panel .child .health-label.waist { top: 46%; left: -26px; }

#phthalates-panel .infant .health-label.miscarriage { top: 0%; left: 7px; }
#phthalates-panel .infant .health-label.birthweight { top: 32%; left: 5px; }
#phthalates-panel .infant .health-label.anogenital { top: 77%; left: 5px; }


/* Right Sidebar */
.right-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-title {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.stats-number {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.stats-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 12px;
}

.stats-link:hover {
    text-decoration: underline;
}

/* Color coding for different stats */
/*.systematic-reviews .stats-icon { background: #87CEEB; }
.primary-studies .stats-icon { background: #DDA0DD; }
.meta-analyses .stats-icon { background: #FFB366; }
.participants .stats-icon { background: #87CEEB; }
.individual-chemicals .stats-icon { background: #90EE90; }*/

/* Evidence content Responsive Design */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        padding: 10px;
    }

    .right-sidebar {
        width: 100%;
    }

    .chemical-tab {
        padding: 10px 10px;
        font-size: .85rem;
    }

    .human-figures {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .header-top {
        padding: 10px 15px;
    }

    .nav-tab {
        padding: 4px 15px;
        font-size: 13px;
    }

    .chemical-title {
        font-size: 18px !important;
    }

    .left-content {
        padding: 20px;
    }
    .settings-drawer {
        right: 100vw;
        width: 100vw;
    }
    .btn {
        padding: .85rem 1rem;
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 35px 22px 20px;
    }
    .legend {
        flex-direction: column;
        gap: 10px;
    }

    .human-figures {
        grid-template-columns: 1fr;
    }

    .stats-card {
        padding: 20px;
    }

    .stats-number {
        font-size: 24px;
    }
    .settings-drawer {
        right: 100vw;
        width: 100vw;
    }
}

/* Adjust main content when sidebar is open */
.cards-container {
    transition: margin-left 0.3s ease;
}

.content-shifted {
    margin-left: 280px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-tab {
        margin: 0;
        padding: 5px 15px;
    }

    .nav-tabs {
        padding: 10px 10px 10px 32px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    }

    .nav-tabs.show {
        display: flex;
    }

    .sidebar-toggle {
        display: block;
    }

    .content-shifted {
        margin-left: 0;
    }

    .header {
        padding: 10px;
    }

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

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* Evidence end */

@media (max-width: 768px) {
    .landing .cards-container {
        padding: 20px 15px;
        gap: 20px;
    }
    .sidebar {
        width: 50px;
    }

    .sidebar-icon {
        padding: 2px 12px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 0px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
        padding: 55px 10px;
    }

    .card {
        padding: 25px 20px;
    }

    .card h3, .landing .card h3{
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }
    .landing .card p {
        font-size: .95rem;
    }
    .landing .card {
        padding: 20px;
    }

    .landing .card-icon {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 15px;
        width: 40px;
        height: 40px;
    }
    .landing .card-icon img{
        width: 50px;
        height: 50px;
    }
}

/* Overview Accordian, modal */

.accordion {
    margin-top: 20px;
}

.accordion-toggle {
    width: 175px;
    padding: 10px 10px !important;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: blue;
}

.accordion-toggle:hover {
    background: #e9ecef;
}

.accordion-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 0 0 8px 8px;
    animation: slideDown 0.3s ease;
}

.accordion-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 750px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    font-size: 15px;
}
.modal-content .btn-primary {
    background: #3379b7;
    color: #fff;
}

.modal-content .btn-secondary {
    background: rgb(236, 235, 235);
    color: #3379b7;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal p{
    margin-bottom: 20px;
    line-height: 1.6;
}
.modal-cta-btn{
    margin-top: 25px; display: flex; gap: 10px; justify-content: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.modal-title {
    font-size: 22px;
    font-weight: 500;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
    color: #aaa;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    color: #000;
    background: #f8f9fa;
}

.bpa-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bpa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.bpa-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bpa-description {
    opacity: 0.9;
    line-height: 1.5;
}


.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 24px;
    height: 20px;
    justify-content: center;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: #666;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-120deg) translate(7px, -6px);
}
.info-gear {
    position: absolute;
    right: 32px;
    top: 72px;
    display: flex;
    gap: 12px;
}

.info-btn, .settings-btn{
    border: none;
    color: #666;
    height: 30px;
    width: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    transition: transform 0.3s ease;
    transform-origin: center center;
}
.settings-btn:hover {
    transform: scale(1.15) rotate(35deg);
}
.info-btn:hover {
    transform: scale(1.15);
}
.legend-modal-content {
    display: grid;
    gap: 15px;
}

.legend-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 4px 0;

}

.legend-detail.red { border-color: #dc3545; background: #fff5f5; }
.legend-detail.orange { border-color: #fd7e14; background: #fff8f0; }
.legend-detail.yellow { border-color: #ffc107; background: #fffbf0; }
.legend-detail.blue { border-color: #007bff; background: #f0f8ff; }
.legend-detail.gray { border-color: #6c757d; background: #f8f9fa; }

.legend-icon {
    width: 20px;
    height: 20px;
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 1999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.);
    display: flex;
    flex-direction: column;
}

.nav-drawer.active {
    left: 0;
}

.drawer-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.drawer-close:hover {
    background: #f8f9fa;
}

/* .modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}
.modal.show{
    display: flex
;
    align-items: center;
    justify-content: center;
} */

.modal {
    display: none; /* IMPORTANT: Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal.show {
    display: flex; /* This will make it visible and centered */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease; /* Ensure you have this @keyframes slideUp defined in your CSS */
}

/* Example keyframes for slideUp animation if you don't have it */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}