/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

/* General page style */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

/* --- NAVBAR --- */
.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: #104735;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1000;
}

/* Brand title and logo */
.custom-navbar .navbar-brand {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-right: 2rem;
    white-space: nowrap;
}

.navbar-brand img {
    margin-right: 10px;
    height: 40px;
}

/* Nav list */
.custom-navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* Nav items */
.custom-navbar .navbar-nav li {
    position: relative;
}

/* Links */
.custom-navbar .nav-link {
    color: white;
    text-decoration: none;
    align-items: center;
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 4px;
    display: block;
}

/* Hover effect */
.custom-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Dropdown behavior */
.custom-navbar .dropdown:hover > .dropdown-menu {
    display: block;
}

/* Dropdown menu */
.custom-navbar .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Dropdown items */
.custom-navbar .dropdown-item {
    color: #104735;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    background-color: transparent;
}

/* Dropdown hover */
.custom-navbar .dropdown-item:hover {
    background-color: #f2f2f2;
    color: #104735;
}

/* Main page container */
.content-container {
    padding: 30px 50px;
    max-width: 1300px;
    margin: 0 auto;
}





/* Default: show desktop navbar, hide mobile */
.custom-navbar {
    display: flex !important;
}
.mobile-navbar {
    display: none !important;
}

/* Mobile: hide desktop navbar, show mobile */
@media (max-width: 768px) {
    .custom-navbar {
        display: none !important;
    }
    .mobile-navbar {
        display: block !important;
    }
}






/* Make the DatePickerRange fill the column */

#pd-date-range .DateRangePickerInput {
  width: 80%;
  display: flex;
}

#pd-date-range .DateInput {
  flex: 1 1 0;
}

#pd-date-range .DateInput_input {
  width: 100%;
  text-align: center; /* optional */
}

#pd-date-range .DateRangePickerInput_arrow {
  margin: 0.01rem 0.01rem; /* optional spacing */
}

#hd-date-range .DateRangePickerInput {
  width: 80%;
  display: flex;
}

#hd-date-range .DateInput {
  flex: 1 1 0;
}

#hd-date-range .DateInput_input {
  width: 100%;
  text-align: center; /* optional */
}

#hd-date-range .DateRangePickerInput_arrow {
  margin: 0.01rem 0.01rem; /* optional spacing */
}

/* Reusable Date Range Picker styling */
.date-range-style {
  width: 100%;                 /* fit inside its col */
  display: flex;
  justify-content: center;     /* centers the range horizontally */
  
}

.date-range-style .DateRangePickerInput {
  width: 100%;
  max-width: 260px;            /* keeps it compact, avoids overflow */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.date-range-style .DateInput {
  flex: 1 1 0;
}

.date-range-style .DateInput_input {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  padding: 4px 6px;
}

.date-range-style .DateRangePickerInput_arrow {
  margin: 0 0.25rem;
  position: relative;
  top: 0;
  transform: translateY(10%);
}

/* === Responsive Square Plot Grid === */

/* === Equal plot card (for top 3 plots + bottom movement plot) === */
.equal-plot-card {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0px;
    aspect-ratio: 1 / 1;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

/* Wrapper for each Graph */
.equal-plot-card .dash-graph {
    width: 100% !important;
    height: auto !important;
    transition: transform 0.25s ease-in-out;
    transform-origin: center;
}

/* Large desktop screens → half size */
@media (min-width: 1200px) {
  .equal-plot-card .js-plotly-plot {
    transform: scale(0.65);
    transform-origin: center;
  }
  .wide-card .js-plotly-plot {
    transform: scale(0.95);
    transform-origin: center;
  }
}

/* Wide-card: used for metrics table */
.wide-card {
    overflow: hidden;
    padding: 0px;
    height: 100%;
}

h6 {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
}

/* Make cards stack nicely on smaller screens */
@media (max-width: 992px) {
    .equal-plot-card {
        margin-bottom: 10px;
    }
    .wide-card {
        margin-bottom: 10px;
    }
}






