/* ==========================================================================
   Dyyno LMS — Institutional Administration Theme
   Clean, authoritative, high-density dashboard for school administrators.
   Zero SaaS gradients, zero cream/terracotta; cards get one soft shadow (--ds-shadow-card).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
/* Staff-app element defaults: theme variable aliases, body, links, iOS input zoom guard.
   Layer: base. */
@layer base {
  :root {
    /* Approved 5-Color Institutional Palette */
    --color-navy: var(--ds-color-brand-navy);          /* Institutional Navy: Header & Primary Titles */
    --color-slate-bg: var(--ds-gray-100-alt);      /* Slate Worksurface: Neutral Low-Strain Background */
    --color-white: var(--ds-white);         /* Clean Panel Surface */
    --color-academy-blue: var(--ds-color-brand-blue);  /* Academy Blue: Action Buttons & Focus */
    --color-academy-hover: var(--ds-academy-700); /* Academy Blue Hover */

    /* Text Colors */
    --text-main: var(--ds-color-text);           /* High-contrast readable body */
    --text-muted: var(--ds-slate-500-alt);          /* Column titles, secondary descriptors */
    --text-dim: var(--ds-slate-400-alt);            /* Subtle dates and tertiary metadata */

    /* Borders & Dividers */
    --border-subtle: var(--ds-gray-300-alt);       /* Crisp hairline borders */
    --border-strong: var(--ds-slate-300-alt2);

    /* Academic Status Accents */
    --grade-pass: var(--ds-green-700-alt);          /* Forest green: Passing (A / B) */
    --grade-pass-bg: var(--ds-green-50-alt);
    --grade-warn: var(--ds-amber-600);          /* Deep amber: Needs attention (C) */
    --grade-warn-bg: var(--ds-amber-100);
    --grade-danger: var(--ds-red-700-alt);        /* Alert crimson: At-risk / Failing (D / F) */
    --grade-danger-bg: var(--ds-red-100);

    /* Typography */
    --font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
    /* Layout & Corners (rounded, professional, non-pill) */
    --radius-xs: 2px;
    --radius-sm: var(--ds-radius-8px);
    --radius-md: var(--ds-radius-12px);
  }

  body {
    font-family: var(--font-family);
    background-color: var(--color-slate-bg);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.45;
    font-size: var(--ds-font-size-14px);
    -webkit-font-smoothing: antialiased;
  }

  a {
    color: var(--color-academy-blue);
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  /* ==========================================================================
     Mobile & Tablet Responsiveness (Step 3.4)
     Touch Target Optimization, Smooth Scrolling, and Adaptive Layouts
     ========================================================================== */

  /* Prevent iOS Safari 16px form auto-zoom */
  @media (max-width: 768px) {
    input[type="text"],
    input[type="search"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
      font-size: 16px !important;
    }
  }

  @media (max-width: 768px) {
    /* Responsive Table Container with Horizontal Scroll Hint */
    .table-container {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: var(--radius-sm);
      box-shadow: inset -5px 0 8px -4px var(--ds-black-a12);
    }

  }
}
