@charset "UTF-8";
/* $bg-color: #f4f4f9; */
/* $bg-color: #f9faf2; */
/* $nav-bkg-color: #084027; */
/* $nav-bkg-color: #062e11; */
/* $nav-bkg-color: #063614; */
body {
  font-family: Verdana, Geneva, "DejaVu Sans", Roboto, Arial, sans-serif;
  /* font-style: italic; */
  color: #273c3d;
  margin: 0;
  padding: 0;
  background-color: #e0e0e2;
}

.login-page-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #cc2233;
  text-decoration: none;
  font-size: 12;
  font-weight: bold;
}
.login-page-link:hover {
  text-decoration: underline;
}

/* App shell: the side pane and the page content sit side by side. */
.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh; /* avoid the mobile URL-bar 100vh gap */
}

/* --- Left Side Navigation Pane --- */
/* Two modes: icons-only rail (default) and full-text panel (`.expanded`).
   Stays docked; content is pushed beside it and it never auto-collapses. */
.sidenav {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  height: 100dvh;
  flex: 0 0 auto;
  /* Width rides on a custom property so the mobile media query can override it
     (an inline `width` would beat the media query; a custom property won't). */
  width: var(--sidenav-width, 56px);
  background-color: #36c2c2;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.25s ease;
  /* No animation while actively dragging the resize handle. */
  /* Draggable divider on the right edge to resize the pane. */
  /* Hamburger button (three horizontal bars) */
  /* Brand logo only shows in full-text mode */
  /* "Our Technology": a link row plus a chevron that reveals the sub-items. */
}
.sidenav.resizing {
  transition: none;
}
.sidenav .resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}
.sidenav .resize-handle:hover {
  background-color: rgba(0, 0, 0, 0.12);
}
.sidenav .menu-toggle {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.sidenav .menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background-color: #273c3d;
}
.sidenav .logo {
  display: none;
}
.sidenav .logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.sidenav .logo .logo-img {
  height: 40px;
  width: 40px;
}
.sidenav .logo .logo-text {
  color: #273c3d;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.sidenav.expanded .logo {
  display: block;
}
.sidenav .nav-links {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}
.sidenav .nav-links a,
.sidenav .nav-links .nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  color: #273c3d;
  text-decoration: none;
  /* reset <button> UA defaults so .nav-item matches the <a> items */
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  text-align: left;
  padding: 0.6rem 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
  /* Icon column keeps the rail width so icons don't shift on expand */
  /* Labels only appear in full-text mode */
}
.sidenav .nav-links a:hover,
.sidenav .nav-links .nav-item:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #36c2c2;
}
.sidenav .nav-links a .icon,
.sidenav .nav-links .nav-item .icon {
  flex: 0 0 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidenav .nav-links a .icon svg,
.sidenav .nav-links .nav-item .icon svg {
  width: 24px;
  height: 24px;
  /* Line icons drawn in a 0 0 24 24 viewBox. */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidenav .nav-links a .label,
.sidenav .nav-links .nav-item .label {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sidenav .nav-group {
  display: flex;
  flex-direction: column;
  /* Chevron sits in the labels' column, so it only makes sense once the
     pane is wide enough to show them; in the rail the header link still
     reaches the overview page. */
  /* Sub-items: same row layout, one step down in weight and icon size. */
}
.sidenav .nav-group .nav-group-header {
  display: flex;
  align-items: center;
}
.sidenav .nav-group .nav-group-header a {
  flex: 1 1 auto;
  min-width: 0;
}
.sidenav .nav-group .nav-group-toggle {
  display: none;
  flex: 0 0 auto;
  padding: 0.6rem 0.5rem;
  background: none;
  border: none;
  color: #273c3d;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.sidenav .nav-group .nav-group-toggle:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #36c2c2;
}
.sidenav .nav-group .nav-group-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.sidenav .nav-group .nav-group-toggle.open svg {
  transform: rotate(90deg);
}
.sidenav .nav-group .nav-sublinks a {
  font-size: 0.92rem;
  font-weight: 400;
  padding: 0.45rem 0;
}
.sidenav .nav-group .nav-sublinks a .icon svg {
  width: 20px;
  height: 20px;
}
.sidenav.expanded .nav-links a .label, .sidenav.expanded .nav-links .nav-item .label {
  opacity: 1;
}
.sidenav.expanded .nav-group {
  /* Indent only in full-text mode; in the rail the icons stay aligned. */
}
.sidenav.expanded .nav-group .nav-group-toggle {
  display: flex;
}
.sidenav.expanded .nav-group .nav-sublinks a {
  padding-left: 0.9rem;
}

.icon-class {
  width: 20px; /* Controls icon size */
  height: 20px;
  color: #4a5568; /* Controls icon color */
}

/* Floating menu button — only visible on mobile (see media query below). */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1100;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background-color: #36c2c2;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background-color: #273c3d;
}

/* Dim, click-to-close layer behind the mobile drawer. */
.sidenav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.4);
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* --- Mobile: off-canvas overlay drawer instead of a docked pane --- */
@media (max-width: 640px) {
  .mobile-toggle {
    display: flex;
  }
  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 280px;
    max-width: 85vw;
    padding-top: 3.5rem;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    /* Drawer is always full-text; no rail toggle or resize on touch. */
  }
  .sidenav.mobile-open {
    transform: translateX(0);
  }
  .sidenav .menu-toggle,
  .sidenav .resize-handle {
    display: none;
  }
  .sidenav .logo {
    display: block;
  }
  .sidenav .nav-links a .label,
  .sidenav .nav-links .nav-item .label {
    opacity: 1;
  }
  .sidenav .nav-group .nav-group-toggle {
    display: flex;
  }
  .sidenav .nav-group .nav-sublinks a {
    padding-left: 0.9rem;
  }
  /* Keep page content clear of the floating menu button. */
  main {
    padding-top: 3.75rem;
  }
}
.card-element {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(40, 76, 29, 0.15);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.login-form h2 {
  margin-top: 0;
  text-align: center;
  color: #333;
}
.login-form input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.login-form button {
  display: block;
  width: fit-content;
  text-align: center;
  text-decoration: none;
  margin: 12px 0 12px 0;
  padding: 0.75rem;
  background-color: #36c2c2;
  color: #273c3d;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.login-form button:hover:not(:disabled) {
  color: #e0e0e2;
  background-color: #225a5d;
}
.login-form button:disabled {
  background-color: #e0e0e2;
  color: #999;
  cursor: not-allowed;
}

/* Worn alongside .login-form, never on its own: that class supplies the field
   and button styling, this one only changes the shape. Kept separate so the
   320px cap above still fits a narrow two-field login. */
.contact-form {
  /* The cap has to go before a width can grow past it. */
  max-width: none;
  width: 80%;
  /* Left-aligned rather than centred, to sit under the copy in
     .dashboard-container, which lays its children out from flex-start. */
  margin: 2rem auto;
  background-color: #edecec;
  /* .login-form styles `input` only; without this the message field would
     ignore all of it and fall back to the browser default. */
}
.contact-form label {
  font-weight: 600;
  /* Pulls each label onto its own line against the form's 1rem gap, so a
     label reads as attached to the field below it rather than floating
     between two. */
  margin-bottom: -0.5rem;
}
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  /* Inputs inherit the page font; textarea does not, and would otherwise
     render in the browser's monospace default. */
  font-family: inherit;
  /* The flex column already sets the width, so free-form dragging would
     only let it escape the form. */
  resize: vertical;
  min-height: 8rem;
}

/* The two office addresses above the contact form, side by side. Only the
   layout lives here - the type comes from the db-* classes in
   .dashboard-container, which is what the rest of the page uses. */
.contact-locations {
  display: flex;
  width: 50%;
  gap: 1.5rem;
  /* The `auto` is what centres the pair. .dashboard-container lays its
     children out from flex-start, so without it the block sits hard left with
     the leftover width all on one side; an auto margin on a flex item beats
     the parent's align-items. */
  margin: 1rem auto;
  /* Equal halves whatever the address lengths, so the two blocks line up. */
}
.contact-locations > div {
  flex: 1;
}

.form-error {
  color: #b00020;
  font-size: 0.9rem;
  margin: 0;
}

.form-success {
  font-weight: 600;
}

.chart-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.dashboard-container {
  display: flex;
  margin: 6px auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.dashboard-container .db-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
  width: 95%;
}
.dashboard-container .db-h1 {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: left;
}
.dashboard-container .db-h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: left;
}
.dashboard-container .db-h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: left;
}
.dashboard-container .db-p {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  text-align: left;
}
