html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Shared top navigation */
.topbar {
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0056b3;
  text-decoration: none;
}

.topbar-brand:hover {
  text-decoration: none;
  color: #003f80;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.topbar-nav a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.topbar-user {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

.page-container {
  max-width: 1200px;
  margin: 24px auto 32px auto;
  padding: 0 16px;
}

/* Shared button styling (overrides Bootstrap for consistency) */
.btn {
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 500;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #5a6268;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
}

/* Flash container shared across pages (toast-style, top-right) */
.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  width: auto;
  max-width: 400px;
}

.custom-flash {
  padding: 12px 16px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.header {
  /* TODO: ADD SHADOW TO HEADER AND CONTENT BOXES */
  width: 100%;
  height: 10%;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header-center {
  font-size: 48px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bolder;
  text-shadow:
  -1px -1px 0 white,
   0   -1px 0 white,
   1px -1px 0 white,
   1px  0   0 white,
   1px  1px 0 white,
   0    1px 0 white,
  -1px  1px 0 white,
  -1px  0   0 white,
  0px 1px 5px #3b5d76;
}

.header-left {
  display: flex;
  flex-direction: row;
  padding-left: 22.5px;
}

.header-btn {
  height: 40px;
  width: 40px;
  background-color: white;
  margin: 7.5px;
  box-shadow: 0px 2px 5px #3b5d76;
}

.header-btn img {
  margin: 5px;
}

.home-icon {
  max-height:30px;
  max-width:30px;
}

.listing-icon {
  max-height:30px;
  max-width:30px;
}

.header-right {
  height:40px;
  padding: 0px 5px;
  margin-right: 30px;
  background-color: white;
  box-shadow: 0px 2px 5px #3b5d76;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pictures {
  display:flex;
  flex-direction: row;
  height: 80%;
  max-height: 80%;
}

.green {
  background-color: #56DD38;
}

.yellow {
  background-color: #FDCA40;
}

.orange {
  background-color: #FF7E00;
}

.red {
  background-color: #DF2935;
}

.purple {
  background-color: #725AC1;
}

.maroon {
  background-color: #71044A;
}

.date-time-box {
  color: black;
  padding: 5px;
  z-index: 1000;
  float: right;
}

.parent-box {
  display: flex;
  flex-direction: row;

  padding: 15px;
  box-sizing: border-box;
  width: 100%;
  height: 90%;
}

.left-box {
  display: flex;
  flex-direction: column;
  width: 65%;
}

.content-show {
  background-color: white;
  width: 100%;
  height: 100%;
  box-shadow: 0px 2px 10px #3b5d76;
}

.current-label {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.chart-box {
  margin: 0;
  padding: 15px;
  box-sizing: border-box;
  height: 70%;
  width: 100%;
}

#aqi-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.current-aqi-info {
  height: 90%;
  width: 40%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.chart-label {
  padding: 5px;
  align-self: center;
  margin: 0;
}

.chart-label-container {
  display: flex;
  flex-direction: column;
  padding: 5px;
  justify-content: center;
  align-items: center;
}

.chart-key {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-height: 30px;
}

#interior-key {
  width: 40px;
  border: none;
  border-top: 3px solid black;
  margin-right: 5px;
}

.exterior-key {
  width: 45px;
  height: 5px;
  display: flex;
  flex-direction: row;
}

#key-section {
  border: none;
  border-top: 2px solid black;
  width: 10px;
  margin: 1.5px;
}

.current-aqi {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75px;
  height: 75px;
  font-size: xx-large;
  font-weight: bolder;
  box-shadow: 0px 2px 5px #1b1d1f;
  border-style: solid;
  border-width: 1px;
}

.chart-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 85%;
}

.widget-box {
  margin: 0;
  padding: 15px;
  box-sizing: border-box;
  height: 30%;
  width: 100%;
}

.widget {
  height: 100%;
  width: 100%;
}

#weather-widget {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

#current-weather {
  display: flex;
  flex-direction: row;
  width: 35%;
  height: 100%;
  box-shadow: 0px 2px 5px #1b1d1f;
  align-items: center;
  justify-content: space-around;
  max-height: 75%;
  border-style: solid;
  border-width: 1px;
}

#current-weather-icon {
  width: 125px;
  height: 125px;
}

.current-weather-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#current-temp {
  font-size: 40px;
  font-weight: bold;
}

.temprature-extremes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 5px 0px;
}

#high-temp {
  font-weight: bold;
  padding-bottom: 10px;
}

#low-temp {
  font-weight: bold;
}

.week-weather-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0px 2px 5px #1b1d1f;
  border-style: solid;
  border-width: 1px;
  height: 75%;
}

.week-day-label {
  font-weight: bold;
  margin: 5px 0px;
}

.week-weather-icon {
  height: 100%;
  max-width: 100px;
  object-fit: cover;
}

.week-temp {
  margin: 5px 0px;
}

.temprature-extremes {
  display: flex;
  flex-direction: column;
}

.right-box {
  margin: 0;
  padding: 15px;
  box-sizing: border-box;
  width: 35%;
}

.aqi-index-desc {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  background-color: white;
  box-shadow: 0px 2px 10px #3b5d76;
}

.category-topper {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-evenly;
  background-color: none;
  box-sizing: border-box;

  height: 30px;
  font-weight: bold;
  font-size: 18px;
  border-bottom: 1px solid #787182;
  margin: 0;
}

.category-field {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  box-sizing: border-box;

  flex-grow: 1;
  /* flex-grow/shrink allows the categories to change size when toggled */
  flex-shrink: 2;
  transition: flex-grow 0.3s ease, flex-shrink 0.3s ease;
  /* transitions for shrink/grow */
  overflow: hidden;

  /* width: 100%;
  height: 100%; */
  margin: 0;

}

.category-field.outdoor-active {
  flex-grow: 5;
  /* make slected big */
  background-color: white;
}

.category-field.indoor-active {
  flex-grow: 5;
  /* make slected big */
  background-color: white;
}

.cat-banner {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-evenly;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
}

.cat-info {
  box-sizing: border-box;
  padding: 20px 40px;
  display: none;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  border-style: solid;
  border-width: 1px 0px 0px 0px;
}

.category-field.exterior-active .cat-info {
  box-sizing: border-box;
  margin: 0;

  display: block;
  height: auto;
  width: 100%;
}

.category-field.interior-active .cat-info {
  box-sizing: border-box;
  margin: 0;

  display: block;
  height: auto;
  width: 100%;
}

.lvl-concern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  width: 60%;
}

.field-divider {
  height: 100%;
  border-style: solid;
  border-width: 0px 0px 0px 1px;
}

.index-value {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  width: 40%;
}

#good {
  background-color: #56DD38;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
}

#moderate {
  background-color: #FDCA40;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
}

#unhealthy1 {
  background-color: #FF7E00;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
}

#unhealthy2 {
  background-color: #E41826;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
}

#unhealthy3 {
  color: white;
  background-color: #725AC1;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
}

#hazardous {
  color: white;
  background-color: #71044A;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
}

/* Responsive tweaks for dashboard layout */
@media (max-width: 1024px) {
  .parent-box {
    flex-direction: column;
    height: auto;
  }

  .left-box,
  .right-box {
    width: 100%;
  }

  .chart-box,
  .widget-box,
  .right-box {
    padding: 10px 12px;
  }

  #current-weather {
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 8px 12px;
  }

  .header-center {
    font-size: 32px;
    margin-top: 4px;
  }

  .header-right {
    margin-right: 0;
    margin-top: 6px;
  }

  .pictures img {
    max-height: 32px;
  }

  .current-aqi {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }

  .chart-box {
    height: auto;
  }

  .week-weather-item {
    width: 18%;
  }

  .aqi-index-desc {
    margin-top: 12px;
  }
}