/* dashboard.css */
/* ===============================================================
    Global Layout Fix: Sticky Footer
    Ensures the footer is always at the bottom of the viewport.
    =============================================================== */
html {
    /* Ensures the html element fills the viewport */
    height: 100%; 
}

body {
    /* Uses Flexbox to manage vertical layout */
    display: flex;
    flex-direction: column;
    /* Sets minimum height to fill the screen */
    min-height: 100vh; 
}

/* This targets the main content wrapper */
main[role="main"] {
    /* Pushes the footer down by taking up all available space */
    flex-grow: 1; 
}

@font-face {
    font-family: 'Agenda-Light';
    font-style: normal;
    font-weight: normal;
    src: local('Agenda-Light'), url('/fonts/agenda-webfont/ufonts.com_agenda-light.woff') format('woff');
}

@font-face {
    font-family: 'Agenda-Bold';
    font-style: normal;
    font-weight: bold;
    src: local('Agenda-Bold'), url('/fonts/agenda-webfont/agenda-bold-webfont.woff') format('woff');
}

@font-face {
    font-family: 'Agenda-Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Agenda-Regular'), url('/fonts/agenda-webfont/ufonts.com_agenda-regular.woff') format('woff');
}

@font-face {
    font-family: 'Agenda-Medium';
    font-style: normal;
    font-weight: 500;
    src: local('Agenda-Medium'), url('/fonts/agenda-webfont/agenda-medium-webfont.woff') format('woff');
}

@import url("https://p.typekit.net/p.css?s=1&k=mvf6oqg&ht=tk&f=30029.30030.30033.30034.40486.40487.40490.40492.55201&a=3192782&app=typekit&e=css"); @font-face {
    font-family: "agenda";
    src: url("https://use.typekit.net/af/3ccb81/00000000000000003b9ae394/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n5&v=3") format("woff2"),url("https://use.typekit.net/af/3ccb81/00000000000000003b9ae394/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n5&v=3") format("woff"),url("https://use.typekit.net/af/3ccb81/00000000000000003b9ae394/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n5&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 500;
    font-stretch: normal;
}

@font-face {
    font-family: "agenda";
    src: url("https://use.typekit.net/af/929345/00000000000000003b9ae395/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i5&v=3") format("woff2"),url("https://use.typekit.net/af/929345/00000000000000003b9ae395/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i5&v=3") format("woff"),url("https://use.typekit.net/af/929345/00000000000000003b9ae395/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i5&v=3") format("opentype");
    font-display: auto;
    font-style: italic;
    font-weight: 500;
    font-stretch: normal;
}

@font-face {
    font-family: "agenda";
    src: url("https://use.typekit.net/af/ab8655/00000000000000003b9ae398/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"),url("https://use.typekit.net/af/ab8655/00000000000000003b9ae398/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff"),url("https://use.typekit.net/af/ab8655/00000000000000003b9ae398/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
}

@font-face {
    font-family: "agenda";
    src: url("https://use.typekit.net/af/b7c13e/00000000000000003b9ae399/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i7&v=3") format("woff2"),url("https://use.typekit.net/af/b7c13e/00000000000000003b9ae399/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i7&v=3") format("woff"),url("https://use.typekit.net/af/b7c13e/00000000000000003b9ae399/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i7&v=3") format("opentype");
    font-display: auto;
    font-style: italic;
    font-weight: 700;
    font-stretch: normal;
}

@font-face {
    font-family: "nunito-sans";
    src: url("https://use.typekit.net/af/7ac87a/00000000000000007735b8f0/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("woff2"),url("https://use.typekit.net/af/7ac87a/00000000000000007735b8f0/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("woff"),url("https://use.typekit.net/af/7ac87a/00000000000000007735b8f0/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
}

@font-face {
    font-family: "nunito-sans";
    src: url("https://use.typekit.net/af/45a685/00000000000000007735b8f3/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3") format("woff2"),url("https://use.typekit.net/af/45a685/00000000000000007735b8f3/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3") format("woff"),url("https://use.typekit.net/af/45a685/00000000000000007735b8f3/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3") format("opentype");
    font-display: auto;
    font-style: italic;
    font-weight: 300;
    font-stretch: normal;
}

@font-face {
    font-family: "nunito-sans";
    src: url("https://use.typekit.net/af/3e4147/00000000000000007735b8fb/30/l?subset_id=2&fvd=n6&v=3") format("woff2"),url("https://use.typekit.net/af/3e4147/00000000000000007735b8fb/30/d?subset_id=2&fvd=n6&v=3") format("woff"),url("https://use.typekit.net/af/3e4147/00000000000000007735b8fb/30/a?subset_id=2&fvd=n6&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 600;
    font-stretch: normal;
}

@font-face {
    font-family: "nunito-sans";
    src: url("https://use.typekit.net/af/ff2f63/00000000000000007735b8ff/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"),url("https://use.typekit.net/af/ff2f63/00000000000000007735b8ff/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff"),url("https://use.typekit.net/af/ff2f63/00000000000000007735b8ff/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
}

@font-face {
    font-family: "patrick-hand-sc";
    src: url("https://use.typekit.net/af/a22b94/00000000000000007740250a/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/a22b94/00000000000000007740250a/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/a22b94/00000000000000007740250a/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: agenda, sans-serif !important;
    font-weight: 500 !important;
}

h1 {
    color: #00467f;
    font-family: 'agenda', sans-serif;
    font-size: 30px;
    line-height: 1.1em;
    padding: 0;
    margin: 0;
    font-weight: 700;
}


body {
    background-color: #f8f9fa;
    font-family: nunito-sans, sans-serif;
}

/* === Responsive Scalable Navbar === */
.main-navbar {
    background-color: #fff;
    border-bottom: 1px solid #dcdcdc;
    transition: all 0.3s ease-in-out;
    font-family: agenda, sans-serif;
    font-weight: 500;
    font-variant: small-caps;
    font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1.2rem);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-logo {
    height: clamp(32px, 3vw + 8px, 60px);
    width: auto;
    transition: height 0.3s ease;
}

.navbar-nav .nav-link {
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.75rem;
    font-size: clamp(0.85rem, 0.7vw + 0.3rem, 1.05rem);
    transition: color 0.25s ease, background 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #00467f !important;
    background-color: rgba(0,70,127,0.05);
    border-radius: 0.25rem;
}

/* Dropdown */
.dropdown .btn {
    font-size: clamp(0.8rem, 0.7vw + 0.3rem, 1rem);
    padding: 0.4rem 0.75rem;
}

/* Text alignment on smaller screens */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        margin-top: 0.5rem;
    }
    .navbar-logo {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .main-navbar {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }
    .navbar-logo {
        height: 36px;
    }
    .navbar-text {
        display: none;
    }
}

select {
    font-size: x-small !important;
}

.smaller-font {
    font-size: x-small !important;
}

#color-bar {
    height: 5px;
    background-image: url(/images/stats-border.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.filter-section {
    width: 100%;
    padding: 20px;
    margin-bottom: 5px;
    background-color: #e6f3f9 !important;
    border-bottom: dimgray solid 0.5px;
}

.pb-5p {
    padding-bottom: 5px;
}

#mapSection, #chartSection, #tableSection {
    position: relative;
    margin: 0 1% 0 1%; 
}

.floating-widget {
    position: absolute;
    top: 15px;
    left: 10px;
    width: 200px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
}

.view-buttons .btn.active {
    font-weight: 600;
    border-width: 2px;
    border-color: #00467f;
    background-color: #cce7f6;
    color: #000;
}

.view-buttons .btn:hover {
    background-color: #d9ecf8;
    border-color: #00467f;
    color: #000;
}

.uppercase {
    text-transform: uppercase;
}

/* #mapTitle, #chartTitle, #tableTitle {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
} */

.td {
    font-size: 0.75rem;
}

.smaller-text {
    font-size: 0.75rem;
}

.state-text {
    font-size: 0.85rem;
}

.smallest-text {
    font-size: 0.65rem;
}

.state-text { background-color: #f8f9fa; font-weight: 600; }
.smaller-text { font-size: 0.9rem; }

#dataTable th.us-total,
#dataTable td.us-total {
  background-color: #fafafa;
  font-weight: 600;
}


  html {
    scroll-behavior: auto !important; /* JS handles smooth scroll */
}

/* Flexible filter groups */
.filter-section .filter-group {
    min-width: 150px;          /* prevents collapsing too small */
    flex: 1 1 150px;           /* grow/shrink, wrap as needed */
}

/* Keep toolbar sized to content and on the right */
.filter-section .section-toolbar {
    flex: 0 0 auto;
}

/* Chart Type Buttons Styling */
.chart-type-buttons .btn {
    padding-bottom: 0!important;
}

.view-buttons .btn {
    padding-bottom: 0!important;
}

/* Shared centering + padding */
.chart-type-buttons .chart-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    line-height: 1;
    border-radius: 0.25rem;
    font-weight: 500;
    border: 1px solid #00467f;
    background-color: #fff;
    color: #00467f;
}

/* 🔵 ACTIVE — matches .view-buttons .btn.active */
.chart-type-buttons .chart-type-btn.active {
    font-weight: 600;
    border-width: 2px;
    border-color: #00467f;
    background-color: #cce7f6;
    color: #000;
}

/* 🔵 HOVER — matches .view-buttons .btn:hover */
.chart-type-buttons .chart-type-btn:hover {
    background-color: #d9ecf8;
    border-color: #00467f;
    color: #000;
}

#barChart {
    min-height: 600px;
    height: auto;
    overflow: visible;
}


/* ============================================================
   🧭 GEO FILTER SIDEBAR — FINAL FIX
   Keeps sidebar right-aligned and at a fixed width in flex layout
   ============================================================ */

.geo-filter-sidebar {
    margin-left: auto;             /* <- pushes sidebar to the RIGHT */
    width: 320px;                  /* fixed sidebar width */
    max-width: 320px;
    flex-shrink: 0;                /* prevents collapsing */
    height: 100%;
    overflow-y: auto;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* CHILDREN SPACING */
.geo-filter-sidebar .form-check {
    margin-bottom: 0.2rem;
}

/* SIDEBAR SCROLLBAR */
.geo-filter-sidebar::-webkit-scrollbar {
    width: 8px;
}
.geo-filter-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 4px;
}

/* ============================================================
   🧭 FLEX PARENT FIX — Ensures horizontal layout on desktop
   ============================================================ */

#mapSection .d-flex {
    display: flex;
    flex-direction: column;        /* mobile default */
}

@media (min-width: 768px) {
    #mapSection .d-flex {
        flex-direction: row;       /* desktop: row layout */
        align-items: stretch;
    }
}
