/* Shared mobile‑first adaptive styling */
:root {
  --primary-color: #2c3e50;
  --accent-color: #1abc9c;
  --font-family: 'Inter', Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--primary-color);
  background-color: #ffffff;
}
img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}
.container, .wrapper, .content {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}
button, .btn {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
}
@media (max-width: 768px) {
  .row, .flex, .grid {
    flex-direction: column !important;
  }
  [class*="col-"] {
    width: 100% !important;
  }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  .desktop-only {
    display: none !important;
  }
}

/* ------------------------------------------------------------------
   Mobile overrides (≤ 768 px)
   ------------------------------------------------------------------*/
@media (max-width: 768px) {

  /* Stack sidebar on top instead of squashing everything sideways */
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;      /* take it out of “fixed” mode */
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .main-content {
    margin-left: 0;          /* no space reserved for the sidebar */
    padding: 1rem;
  }

  /* Scale long titles down on phones */
  h1, .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.2;
  }
}
