/* Doctor Serial Cloud — Admin/Reception Design System
   ---------------------------------------------------------------------------
   Colour, type, and elevation now come from tokens.css, which both this
   surface and the prescription workspace share (project-control/design.md §3).

   The names below are the legacy vocabulary used across components.css,
   layouts.css, and the views. They are kept as ALIASES so existing markup is
   untouched — only the values change. Do not add new colours here; add a
   token to tokens.css and alias it.
   --------------------------------------------------------------------------- */
@import url('./tokens.css');

:root {
  /* Primary → the single shared accent (muted teal-blue) */
  --primary:       var(--brand);
  --primary-hover: var(--brand-hover);
  --primary-light: var(--brand-subtle);

  /* Legacy "--accent" was a bright teal. Remapped to the muted info tone so the
     surface stays within the three-hue limit (design.md §2.4). */
  --accent:        var(--info);
  --accent-hover:  var(--info-hover);
  --accent-light:  var(--info-subtle);

  --danger-light:  var(--danger-subtle);
  --success-light: var(--success-subtle);
  --warning-light: var(--warning-subtle);
  /* --danger --success --warning --info come straight from tokens.css */

  /* Hero band on the public profile — deep slate-teal ramp, no saturated navy */
  --hero-dark: #1B3D4C;
  --hero-mid:  #24586C;
  --hero-light: var(--brand);

  /* Neutral surfaces */
  --bg-primary:  var(--canvas);
  --bg-surface:  var(--panel);
  --bg-elevated: var(--surface);
  --bg-border:   var(--border);
  --bg-divider:  var(--inset);

  /* Text */
  --text-primary: var(--text);
  /* --text-secondary --text-muted --text-inverse come from tokens.css */

  /* Elevation — hairline + whisper only */
  --shadow-xl:    var(--shadow-lg);
  --shadow-glass: var(--shadow-md);

  /* Fonts */
  --font-sans: var(--font-ui);

  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Grid & Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg-col-span-2 { grid-column: span 2 / span 2; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* Spacing Utilities */
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }

.m-0 { margin: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* Display & Visibility */
.d-block { display: block; }
.d-none { display: none !important; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Text Alignment & Transformations */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-mono { font-family: var(--font-mono); }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
