/* Custom layer on top of Tailwind CDN — kept minimal */

/* Sidebar nav item base style (Tailwind classes can't fully address pseudo-states for compound items, so we define once) */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: rgb(203 213 225);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-item:hover {
  background-color: rgb(255 255 255 / 0.05);
  color: white;
}
.nav-active {
  background-color: rgb(255 255 255 / 0.10);
  color: white;
}

/* KPI tile */
.kpi-card {
  background-color: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.kpi-card:hover {
  border-color: rgb(203 213 225);
  box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.06);
}
.kpi-icon {
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
}

/* Generic content panel */
.panel {
  background-color: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(226 232 240);
  background-color: rgb(248 250 252);
}

/* Quick action row */
.quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease;
}
.quick-action:hover {
  background-color: rgb(248 250 252);
}
.quick-action-icon {
  height: 2rem;
  width: 2rem;
  border-radius: 0.375rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Hide scrollbars on mobile sidebar while still scrollable */
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 0.1);
  border-radius: 3px;
}

/* Focus ring polish */
:focus-visible {
  outline-offset: 2px;
}
