:root {
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #818181;
  --gray-dark: #3c3c3c;
  --primary: #007bff;
  --secondary: #818181;
  --brand-blue: #007bff;
  --brand-white: #F9F9F9;
  --brand-white-hover: #F2F2F2;
  --brand-blue-dark: #06318C;
  --brand-blue-dark-variant: #425E91;
  --brand-blue-light: #66B2FF;
  --light-surface-1: #FFFFFF;
  --light-surface-2: #F6F6F6;
  --light-surface-3: #E9E9EA;
  --light-surface-outline: #B5B5B5; 
  --dark-surface-1: #242424;
  --dark-surface-2: #262626;
  --dark-surface-3: #2d2d2d;
  --dark-surface-outline: #656565;
  --on-light-surface: #DDDDDD;
  --on-dark-surface: #393939;
  --light-container: #E9E9E9;
  --dark-container: #303030;
  --bs-primary: #007bff; /*  Custom Orange */
  --bs-secondary: #4a90e2; /* Custom Blue */
  --bs-success: #28a745;   /* Default Green */
  --bs-danger: #dc3545;    /* Default Red */
  --bs-warning: #ffc107;   /* Default Yellow */
  --bs-info: #4a90e2;      /* Default Teal */
  --bs-light: #f8f9fa;     /* Default Light */
  --bs-dark: #343a40;      /* Default Dark */
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #3c3c3c;
  --transparent: #FFFFFF00;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: Exo 2; /* -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100vw;
}

/* 1️⃣ Ensure the entire date picker container matches Bootstrap button */
.DateRangePicker {
    background-color: var(--blue) !important; /* Bootstrap Primary Blue */
    border-radius: 5px;
    /* border: 1px solid var(--light-surface-outline) !important; Darker blue border */
    /* padding: 5px; */
}

/* 2️⃣ Fix the background behind text inputs */
.DateInput {
    background-color: var(--blue) !important; /* Match button */
    border-radius: 5px;
}

/* 3️⃣ Make sure individual date fields have the correct background */
.DateInput_input {
    background-color: var(--blue) !important; /* Match button */
    color: #ffffff !important; /* White text */
    border: none !important;
    border-radius: 5px;
    text-align: center;
}

/* 4️⃣ Remove the white background from behind the input fields */
.DateRangePickerInput {
    background-color: var(--blue) !important; /* Match button */
    border: 1px solid var(--brand-blue-light) !important; /* Darker blue border */
    border-radius: 5px;
}

/* 5️⃣ Ensure arrow background matches the theme */
.DateRangePickerInput_arrow {
    background-color: transparent !important; /* Remove white background */
    color: #ffffff !important; /* White arrows */
}

/* 6️⃣ Fix the calendar popup's background */
.DateRangePicker_picker {
    background-color: var(--blue) !important; /* Match button */
    border-radius: 5px;
}

/* 7️⃣ Fix calendar days text */
.DayPicker {
    background-color: var(--blue) !important; /* Fix white background */
}

/* 8️⃣ Change text color of selectable days */
.DayPicker-Day {
    color: #ffffff !important; /* White text */
}

/* 9️⃣ Style the selected date in the calendar */
.DayPicker-Day--selected, .DayPicker-Day--today {
    background-color: #ffc107 !important; /* Bootstrap Warning (Yellow) */
    color: #000000 !important; /* Ensure readability */
}

/* Change color of NavLink when active */
.nav-link.active {
    color: var(--primary) !important;  
    /* color: var(--secondary) !important;  Use Bootstrap's primary color */
    background-color: transparent !important; /* Remove background color */
}

/* Ensure icons inside the NavLink also change color */
/* .nav-link.active i { */
    /* color: var(--primary) !important; */
/* } */

/* Default icon color when inactive */
/* .nav-link i {
    color: inherit;
} */

/* .nav-link:hover {
    color: var(--primary) !important;
} */

/* .nav-link.active { */
    /* border: 1px solid var(--primary); */
/* } */

/* Default State - Neutral Grey */
.nav-item .nav-icon,
.nav-item .nav-text {
    color: var(--brand-white) !important;  
    transition: color 0.3s ease; /* Smooth color change */
}

/* Active State - White */
.nav-item.active .nav-icon,
.nav-item.active .nav-text {
    color: #ffffff !important;  /* White */
}

/* Hover Effect */
.nav-item:hover .nav-icon,
.nav-item:hover .nav-text {
    color: #ffffff !important;  /* White on hover */
}

/* Navbar Adjustments */
.nav-item {
    text-align: center !important;
    /* padding: 1rem 1rem !important; */
}

/* Default Link Style: Light White */
.custom-nav-link {
    color: rgba(255, 255, 255, 0.8) !important;  /* Light white */
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Active Link: Fully White */
.custom-nav-link.active {
    color: var(--bs-white) !important;  /* Full white */
}

/* Hover Effect: Brighten on Hover */
.custom-nav-link:hover {
    color: var(--brand-blue-dark-variant) !important;  /* White on hover */
}

/* Default Button Style */
.bts-button {
    background: var(--transparent);  
    /* background: var(--dark-surface-3);   */
    color: var(--brand-blue) !important;  /* Light white */
    /* padding: 0.5rem 1rem; */
    margin: 2px;
    border-radius: 4px;
    border-color: var(--brand-blue) !important;  /* Light white */
    text-align: center;
    transition: all 0.3s ease;  /* Smooth transition */

    /* min-width: 60px;   */
    padding: 10px;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.iso-button{
    margin: 2px;
    border-radius: 4px;
    border-color: var(--white) !important;  /* Light white */
    text-align: center;
    transition: all 0.3s ease;  /* Smooth transition */
    /* min-width: 60px;   */
    padding: 10px;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hover Effect for the Entire Button */
.bts-button:hover {
    /* background: rgba(255, 255, 255, 0.1);  */
    /* background: var(--dark-surface-3);   */
    /* background: var(--brand-blue-dark-variant) !important;  Light white */
    background: var(--bs-primary) !important;  /* Light white */
    border-color: var(--white) !important;  /* Light white */
    /* color: var(--brand-blue-dark-variant) !important;  Light white  */
    color: var(--bs-white) !important;  /* Light white */ 
    transform: scale(1.02);  /* Slight scaling */
}

/* Active State */
.bts-button.active {
    background: var(--primary) !important;  /* Primary color */ 
    color: var(--white) !important;  /* Primary color */
    /* box-shadow: 0px 5px 20px var(--primary);  White shadow */
}

.rto-label {
    background: none !important;
    border: none !important;
}

.sidebar-navbar {
    /* position: fixed; */
    margin: 0;
    left: 0;
    /* top: 0; */
    z-index: 1050; /* Ensures it stays above content */
    padding-top: 0.0rem;
    height: 100vh;
    color: white;
    position: fixed;
    align-content: center;
    /* gap: 0.5rem; */
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
/* flex-column align-items-center */
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* Enables scrolling */


    overflow-y: auto; /* Enables scrolling */


}

/* Ensure shadow remains visible across screen sizes */
/* For medium and smaller screens */
/* @media (max-width: 992px) {  
    .sidebar-navbar {
        width: 80px; 
        box-shadow: 3px 0px 8px rgba(0, 0, 0, 0.5);
    }
} */
/* For tablets and smaller screens */
/* @media (max-width: 768px) {  
    .sidebar-navbar {
        width: 70px;
        box-shadow: 2px 0px 6px rgba(0, 0, 0, 0.5);
    }
} */

.bts-card {
    margin: 0.5rem;
    padding: 0;
    /* width: auto; */
    max-width: 99%;
    overflow: visible;
    /* padding: 1rem; */
    /* background: var(--dark-surface-3);
    color: var(--brand-white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; */
}

/*
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-control-attribution a {
  color: var(--brand-white);
}
*/

/* Assign leavlet top processing priority */
.leaflet-container {
    z-index: 0 !important;
}

#background-container {
  position: relative;
  z-index: 1;
  background-image: url("windmill.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

/* Blur layer */
#background-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;
  background-size: inherit;
  background-repeat: inherit;
  background-position: inherit;
  filter: blur(12px);
  z-index: -1; /* Send behind actual content */
  opacity: 0.8;
}



.transparent-content {
    background: none;
    border: none;
    box-shadow: none;
    color: #ffffff; /* White text for dark backgrounds */
    text-align: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-text {
  /* color: rgba(255, 255, 255, 0.85); /* subtle white blend */
  color: rgba(0, 0, 0, 0.65); /* subtle dark blend */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); /* soft pop */

.bg-glass{
  background: rgba(255, 255, 255, 0.1); /* or rgba(0,0,0,0.3) for dark mode */
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
}

/* glass controls */
/* Base reset */
/*
html, body, #_dash-app-content {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
background-color: #f5f5f5; fallback if map fails 
}
*/

/* Glassmorphism style */
.glass-navbar,
.glass-sidebar {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.8); /* Soft dark text */
  text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.4); /* soft glow */
}

/* Navbar styling */
.glass-navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 2rem;
  z-index: 1000;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Sidebar styling */
.glass-sidebar {
  position: absolute;
  top: 100px;
  left: 20px;
  padding: 1rem 1.5rem;
  width: 220px;
  z-index: 1000;
}

.glass-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.85);
}

.glass-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glass-sidebar li {
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease;
}

.glass-sidebar li:hover {
  color: rgba(0, 0, 0, 1);
}




/* Glass Slider Styling */
.glass-slider .rc-slider {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-slider .rc-slider-rail {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 3px;
}

.glass-slider .rc-slider-track {
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.6)) !important;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.glass-slider .rc-slider-handle {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(0, 123, 255, 0.8) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 123, 255, 0.4) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.glass-slider .rc-slider-handle:hover {
  border-color: rgba(0, 123, 255, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 123, 255, 0.6) !important;
}

.glass-slider .rc-slider-handle:focus {
  border-color: rgba(0, 123, 255, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 123, 255, 0.6) !important;
}

.glass-slider .rc-slider-mark-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.glass-slider .rc-slider-mark-text-active {
  color: rgba(255, 255, 255, 1) !important;
  font-weight: bold;
}

/* Tooltip styling for glass theme */
.glass-slider .rc-slider-tooltip {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
}

.glass-slider .rc-slider-tooltip-content {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.8rem;
}

.glass-slider .rc-slider-tooltip-arrow {
  border-top-color: rgba(0, 0, 0, 0.8) !important;
}

/* Time slider container specific styling */
#time-slider-container .glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* enforce full width for containers */
#app-container,
.dash-bootstrap .row,
.dash-bootstrap .col,
.dash-bootstrap .container {
  overflow-x: hidden;

  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force base transparency and backdrop on table */
.glass-table {
  background: transparent !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

/* Reset all inherited background styles */
.glass-table * {
  background-color: transparent !important;
}

/* Table header */
.glass-table thead th {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(0, 0, 0, 0.7) !important;
}

/* Table rows - light glass */
.glass-table tbody tr {
  background-color: rgba(255, 255, 255, 0.15) !important;
  transition: background-color 0.2s ease;
}

/* Hover effect - darker glass */
.glass-table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  cursor: pointer;
}

/* Borders */
.glass-table td, .glass-table th {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.landing-logo {
    font-size: clamp(7rem, 14vw, 18rem);
    line-height: 1.05;          /* tight vertical rhythm */
    letter-spacing: -0.5px;     /* polish large text */
}

.page-markdown {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

