/**
 * Aeromed Prime LMS - Comprehensive Stylesheet
 * =============================================
 * A modern, accessible CSS framework for the Aeromed Prime Learning Management System
 * 
 * Primary Color: #1e3a8a (Blue)
 * Secondary Color: #0d9488 (Teal)
 * 
 * @version 1.0.0
 * @author Aeromed Prime Consultancy
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */

:root {
  /* Primary Color Scale - Blue */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* Secondary Color Scale - Teal */
  --color-secondary-50: #f0fdfa;
  --color-secondary-100: #ccfbf1;
  --color-secondary-200: #99f6e4;
  --color-secondary-300: #5eead4;
  --color-secondary-400: #2dd4bf;
  --color-secondary-500: #14b8a6;
  --color-secondary-600: #0d9488;
  --color-secondary-700: #0f766e;
  --color-secondary-800: #115e59;
  --color-secondary-900: #134e4a;

  /* Neutral Colors - Gray Scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-success-50: #f0f8fd;
  --color-success-100: #deedf7;
  --color-success-500: #7AC0E1;
  --color-success-600: #4da6d6;
  --color-success-700: #3389c1;

  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;

  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;

  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-500: #3b82f6;
  --color-info-600: #2563eb;
  --color-info-700: #1d4ed8;

  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;  /* 2px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-3xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-none: none;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Focus Ring */
  --focus-ring-width: 3px;
  --focus-ring-color: var(--color-primary-500);
  --focus-ring-offset: 2px;
}

/* Dark mode variables (prepared for future use) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-primary: var(--color-gray-900);
    --color-bg-secondary: var(--color-gray-800);
    --color-text-primary: var(--color-gray-100);
    --color-text-secondary: var(--color-gray-400);
  }
}

/* ============================================
   2. CSS RESET & BASE STYLES
   ============================================ */

/* Modern CSS Reset based on Andy Bell's approach */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default margin and padding */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core root defaults */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-gray-800);
  background-color: var(--color-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
label {
  line-height: var(--line-height-tight);
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* Remove default styling from anchor elements */
a {
  color: inherit;
  text-decoration: none;
}

/* Make images and media easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* Selection styling */
::selection {
  background-color: var(--color-primary-200);
  color: var(--color-primary-900);
}

/* ============================================
   3. UTILITY CLASSES
   ============================================ */

/* ----- Spacing Utilities ----- */

/* Margin utilities */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-10 { margin: var(--space-10); }
.m-auto { margin: auto; }

.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-auto { margin-bottom: auto; }

.ml-0 { margin-left: var(--space-0); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: var(--space-0); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-auto { margin-right: auto; }

.mx-0 { margin-left: var(--space-0); margin-right: var(--space-0); }
.mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); }
.mx-2 { margin-left: var(--space-2); margin-right: var(--space-2); }
.mx-3 { margin-left: var(--space-3); margin-right: var(--space-3); }
.mx-4 { margin-left: var(--space-4); margin-right: var(--space-4); }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-0 { margin-top: var(--space-0); margin-bottom: var(--space-0); }
.my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
.my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.my-3 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }

/* Padding utilities */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }

.pt-0 { padding-top: var(--space-0); }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-20 { padding-top: var(--space-20); }

.pb-0 { padding-bottom: var(--space-0); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

.pl-0 { padding-left: var(--space-0); }
.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }
.pl-6 { padding-left: var(--space-6); }
.pl-8 { padding-left: var(--space-8); }

.pr-0 { padding-right: var(--space-0); }
.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }
.pr-6 { padding-right: var(--space-6); }
.pr-8 { padding-right: var(--space-8); }

.px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* ----- Typography Utilities ----- */

/* Font sizes */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }
.text-6xl { font-size: var(--font-size-6xl); }

/* Font weights */
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text colors */
.text-white { color: #ffffff; }
.text-primary-50 { color: var(--color-primary-50); }
.text-primary-100 { color: var(--color-primary-100); }
.text-primary-200 { color: var(--color-primary-200); }
.text-primary-300 { color: var(--color-primary-300); }
.text-primary-400 { color: var(--color-primary-400); }
.text-primary-500 { color: var(--color-primary-500); }
.text-primary-600 { color: var(--color-primary-600); }
.text-primary-700 { color: var(--color-primary-700); }
.text-primary-800 { color: var(--color-primary-800); }
.text-primary-900 { color: var(--color-primary-900); }

.text-secondary-50 { color: var(--color-secondary-50); }
.text-secondary-100 { color: var(--color-secondary-100); }
.text-secondary-200 { color: var(--color-secondary-200); }
.text-secondary-300 { color: var(--color-secondary-300); }
.text-secondary-400 { color: var(--color-secondary-400); }
.text-secondary-500 { color: var(--color-secondary-500); }
.text-secondary-600 { color: var(--color-secondary-600); }
.text-secondary-700 { color: var(--color-secondary-700); }
.text-secondary-800 { color: var(--color-secondary-800); }
.text-secondary-900 { color: var(--color-secondary-900); }

.text-gray-50 { color: var(--color-gray-50); }
.text-gray-100 { color: var(--color-gray-100); }
.text-gray-200 { color: var(--color-gray-200); }
.text-gray-300 { color: var(--color-gray-300); }
.text-gray-400 { color: var(--color-gray-400); }
.text-gray-500 { color: var(--color-gray-500); }
.text-gray-600 { color: var(--color-gray-600); }
.text-gray-700 { color: var(--color-gray-700); }
.text-gray-800 { color: var(--color-gray-800); }
.text-gray-900 { color: var(--color-gray-900); }

.text-success-500 { color: var(--color-success-500); }
.text-success-600 { color: var(--color-success-600); }
.text-success-700 { color: var(--color-success-700); }

.text-warning-500 { color: var(--color-warning-500); }
.text-warning-600 { color: var(--color-warning-600); }
.text-warning-700 { color: var(--color-warning-700); }

.text-error-500 { color: var(--color-error-500); }
.text-error-600 { color: var(--color-error-600); }
.text-error-700 { color: var(--color-error-700); }

/* Line heights */
.leading-tight { line-height: var(--line-height-tight); }
.leading-snug { line-height: var(--line-height-snug); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }
.leading-loose { line-height: var(--line-height-loose); }

/* Text transforms */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Text decoration */
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

/* Letter spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ----- Background Color Utilities ----- */

.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }

.bg-primary-50 { background-color: var(--color-primary-50); }
.bg-primary-100 { background-color: var(--color-primary-100); }
.bg-primary-200 { background-color: var(--color-primary-200); }
.bg-primary-300 { background-color: var(--color-primary-300); }
.bg-primary-400 { background-color: var(--color-primary-400); }
.bg-primary-500 { background-color: var(--color-primary-500); }
.bg-primary-600 { background-color: var(--color-primary-600); }
.bg-primary-700 { background-color: var(--color-primary-700); }
.bg-primary-800 { background-color: var(--color-primary-800); }
.bg-primary-900 { background-color: var(--color-primary-900); }

.bg-secondary-50 { background-color: var(--color-secondary-50); }
.bg-secondary-100 { background-color: var(--color-secondary-100); }
.bg-secondary-200 { background-color: var(--color-secondary-200); }
.bg-secondary-300 { background-color: var(--color-secondary-300); }
.bg-secondary-400 { background-color: var(--color-secondary-400); }
.bg-secondary-500 { background-color: var(--color-secondary-500); }
.bg-secondary-600 { background-color: var(--color-secondary-600); }
.bg-secondary-700 { background-color: var(--color-secondary-700); }
.bg-secondary-800 { background-color: var(--color-secondary-800); }
.bg-secondary-900 { background-color: var(--color-secondary-900); }

.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-gray-100 { background-color: var(--color-gray-100); }
.bg-gray-200 { background-color: var(--color-gray-200); }
.bg-gray-300 { background-color: var(--color-gray-300); }
.bg-gray-400 { background-color: var(--color-gray-400); }
.bg-gray-500 { background-color: var(--color-gray-500); }
.bg-gray-600 { background-color: var(--color-gray-600); }
.bg-gray-700 { background-color: var(--color-gray-700); }
.bg-gray-800 { background-color: var(--color-gray-800); }
.bg-gray-900 { background-color: var(--color-gray-900); }

.bg-success-50 { background-color: var(--color-success-50); }
.bg-success-100 { background-color: var(--color-success-100); }
.bg-success-500 { background-color: var(--color-success-500); }
.bg-success-600 { background-color: var(--color-success-600); }

.bg-warning-50 { background-color: var(--color-warning-50); }
.bg-warning-100 { background-color: var(--color-warning-100); }
.bg-warning-500 { background-color: var(--color-warning-500); }
.bg-warning-600 { background-color: var(--color-warning-600); }

.bg-error-50 { background-color: var(--color-error-50); }
.bg-error-100 { background-color: var(--color-error-100); }
.bg-error-500 { background-color: var(--color-error-500); }
.bg-error-600 { background-color: var(--color-error-600); }

/* ----- Layout Utilities ----- */

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.inline-grid { display: inline-grid; }
.hidden { display: none; }

/* Position */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

/* Position coordinates */
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }

.top-0 { top: 0; }
.top-4 { top: var(--space-4); }
.top-16 { top: 4rem; }
.top-20 { top: 5rem; }

.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Z-index */
.z-0 { z-index: var(--z-0); }
.z-10 { z-index: var(--z-10); }
.z-20 { z-index: var(--z-20); }
.z-30 { z-index: var(--z-30); }
.z-40 { z-index: var(--z-40); }
.z-50 { z-index: var(--z-50); }
.z-auto { z-index: var(--z-auto); }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* Flexbox utilities */
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

.flex-grow { flex-grow: 1; }
.flex-grow-0 { flex-grow: 0; }
.flex-shrink { flex-shrink: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

/* Width & Height utilities */
.w-0 { width: 0; }
.w-1 { width: var(--space-1); }
.w-2 { width: var(--space-2); }
.w-4 { width: var(--space-4); }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: var(--space-8); }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.w-64 { width: 16rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-min { width: min-content; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }

.h-0 { height: 0; }
.h-1 { height: var(--space-1); }
.h-2 { height: var(--space-2); }
.h-4 { height: var(--space-4); }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: var(--space-8); }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-64 { height: 16rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-min { height: min-content; }
.h-max { height: max-content; }
.h-fit { height: fit-content; }

.min-h-0 { min-height: 0; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ----- Border Utilities ----- */

.border-0 { border-width: 0; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }

.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }

.border-solid { border-style: solid; }
.border-dashed { border-style: dashed; }
.border-dotted { border-style: dotted; }
.border-none { border-style: none; }

.border-white { border-color: #ffffff; }
.border-gray-100 { border-color: var(--color-gray-100); }
.border-gray-200 { border-color: var(--color-gray-200); }
.border-gray-300 { border-color: var(--color-gray-300); }
.border-primary-200 { border-color: var(--color-primary-200); }
.border-primary-500 { border-color: var(--color-primary-500); }
.border-secondary-100 { border-color: var(--color-secondary-100); }
.border-secondary-200 { border-color: var(--color-secondary-200); }

/* Border radius */
.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ----- Shadow Utilities ----- */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-inner { box-shadow: var(--shadow-inner); }
.shadow-none { box-shadow: var(--shadow-none); }

/* ----- Container Utilities ----- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container { max-width: var(--container-sm); }
}

@media (min-width: 768px) {
  .container { max-width: var(--container-md); }
}

@media (min-width: 1024px) {
  .container { max-width: var(--container-lg); }
}

@media (min-width: 1280px) {
  .container { max-width: var(--container-xl); }
}

@media (min-width: 1536px) {
  .container { max-width: var(--container-2xl); }
}

/* Max width utilities */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }
.max-w-none { max-width: none; }

/* ============================================
   4. COMPONENT STYLES
   ============================================ */

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color), 0 0 0 calc(var(--focus-ring-width) + var(--focus-ring-offset)) white;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--font-size-xl);
  border-radius: var(--radius-2xl);
}

/* Button variants - Primary */
.btn-primary {
  background-color: var(--color-primary-600);
  color: white;
  border-color: var(--color-primary-600);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-700);
  border-color: var(--color-primary-700);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  background-color: var(--color-primary-800);
  transform: translateY(0);
}

/* Button variants - Secondary */
.btn-secondary {
  background-color: var(--color-secondary-600);
  color: white;
  border-color: var(--color-secondary-600);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-secondary-700);
  border-color: var(--color-secondary-700);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  background-color: var(--color-secondary-800);
  transform: translateY(0);
}

/* Button variants - Outline */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary-600);
  border-color: var(--color-primary-600);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  border-color: var(--color-primary-700);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--color-secondary-600);
  border-color: var(--color-secondary-600);
}

.btn-outline-secondary:hover:not(:disabled) {
  background-color: var(--color-secondary-50);
  color: var(--color-secondary-700);
  border-color: var(--color-secondary-700);
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-outline-white:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Button variants - Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--color-gray-700);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

/* Button variants - Success, Warning, Error */
.btn-success {
  background-color: var(--color-success-600);
  color: white;
  border-color: var(--color-success-600);
}

.btn-success:hover:not(:disabled) {
  background-color: var(--color-success-700);
  border-color: var(--color-success-700);
}

.btn-warning {
  background-color: var(--color-warning-500);
  color: white;
  border-color: var(--color-warning-500);
}

.btn-warning:hover:not(:disabled) {
  background-color: var(--color-warning-600);
  border-color: var(--color-warning-600);
}

.btn-error {
  background-color: var(--color-error-600);
  color: white;
  border-color: var(--color-error-600);
}

.btn-error:hover:not(:disabled) {
  background-color: var(--color-error-700);
  border-color: var(--color-error-700);
}

/* Button with icon */
.btn-icon {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
}

.btn-icon.btn-sm {
  padding: var(--space-2);
}

.btn-icon.btn-lg {
  padding: var(--space-4);
}

/* Button group */
.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.btn-group .btn:not(:first-child) {
  margin-left: -2px;
}

/* ----- Cards ----- */

.card {
  background-color: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-gray-300);
}

.card-hover {
  transition: all var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(30, 58, 138, 0.15);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-gray-100);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-gray-100);
  background-color: var(--color-gray-50);
}

/* Module Card - solid, no gradient */
.module-card {
  background-color: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  display: block;
  text-decoration: none;
  color: inherit;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(30, 58, 138, 0.15);
  border-color: var(--color-gray-300);
}

.module-card__number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.module-card:hover .module-card__number {
  background-color: var(--color-primary-600);
  color: white;
}

/* Team Card - border only */
.team-card {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gray-300);
}

.team-card__image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-card__image {
  transform: scale(1.05);
}

.team-card__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 58, 138, 0.55);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.team-card:hover .team-card__overlay {
  opacity: 1;
}

.team-card__content {
  padding: var(--space-6);
}

/* News Card - border only, no shadow doubling */
.news-card {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gray-300);
}

.news-card__image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.news-card__content {
  padding: var(--space-6);
}

.news-card__badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----- Forms ----- */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  margin-bottom: var(--space-1);
}

.form-label--required::after {
  content: " *";
  color: var(--color-error-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-gray-900);
  background-color: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-400);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: var(--color-gray-100);
  color: var(--color-gray-500);
  cursor: not-allowed;
}

.form-input--error,
.form-select--error,
.form-textarea--error {
  border-color: var(--color-error-500);
}

.form-input--error:focus,
.form-select--error:focus,
.form-textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input--success,
.form-select--success,
.form-textarea--success {
  border-color: var(--color-success-500);
}

.form-textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

.form-hint {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--font-size-sm);
  color: var(--color-error-600);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Checkbox and Radio */
.form-checkbox,
.form-radio {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-gray-300);
  background-color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.form-checkbox {
  border-radius: var(--radius-md);
}

.form-radio {
  border-radius: var(--radius-full);
}

.form-checkbox:checked,
.form-radio:checked {
  background-color: var(--color-primary-600);
  border-color: var(--color-primary-600);
}

.form-checkbox:focus,
.form-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Form layout */
.form-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-row--2col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Input groups */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group__prepend,
.input-group__append {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background-color: var(--color-gray-100);
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

.input-group__prepend {
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group__append {
  border-left: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.input-group .form-input {
  border-radius: 0;
  flex: 1;
}

.input-group .form-input:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.input-group .form-input:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* ----- Navigation ----- */

/* Desktop Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.navbar--scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

@media (min-width: 640px) {
  .navbar__container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .navbar__container {
    padding: 0 var(--space-8);
  }
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.navbar__logo {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-primary-700);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.navbar__brand-text h1 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-900);
  line-height: 1.2;
}

.navbar__brand-text span {
  font-size: var(--font-size-xs);
  color: var(--color-secondary-600);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .navbar__nav {
    display: flex;
  }
}

.navbar__link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__link:hover {
  color: var(--color-primary-600);
}

.navbar__link--active {
  color: var(--color-primary-600);
  font-weight: var(--font-weight-semibold);
}

.navbar__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary-600);
  border-radius: var(--radius-full);
}

/* Mobile Menu Toggle */
.navbar__toggle {
  display: flex;
  padding: var(--space-2);
  color: var(--color-gray-700);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid var(--color-gray-200);
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-menu__link:hover {
  background-color: var(--color-gray-50);
  color: var(--color-primary-600);
}

.mobile-menu__link--active {
  color: var(--color-primary-600);
  background-color: var(--color-primary-50);
}

/* LMS Sidebar Navigation */
.sidebar {
  width: 16rem;
  background-color: white;
  border-right: 1px solid var(--color-gray-200);
  overflow-y: auto;
  height: calc(100vh - 4rem);
  position: sticky;
  top: 4rem;
}

.sidebar__header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-gray-200);
}

.sidebar__title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-400);
  margin-bottom: var(--space-2);
}

.sidebar__course-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
}

.sidebar__nav {
  padding: var(--space-2);
}

.sidebar__link {
  display: flex;
  align-items: center;
  padding: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-1);
}

.sidebar__link:hover {
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
}

.sidebar__link--active {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  border-right: 3px solid var(--color-primary-600);
}

.sidebar__link-icon {
  width: 1rem;
  height: 1rem;
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.sidebar__link-number {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.sidebar__link--completed .sidebar__link-number {
  background-color: var(--color-success-500);
  color: white;
}

.sidebar__link--locked .sidebar__link-number {
  background-color: var(--color-gray-200);
  color: var(--color-gray-500);
}

/* ----- Booking Calendar ----- */

.calendar {
  background-color: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-primary-600);
  color: white;
}

.calendar__month-year {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.calendar__nav {
  display: flex;
  gap: var(--space-2);
}

.calendar__nav-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.calendar__nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar__weekday {
  padding: var(--space-3);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-gray-50);
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  border: 1px solid var(--color-gray-100);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.calendar__day:hover:not(.calendar__day--disabled) {
  background-color: var(--color-primary-50);
}

.calendar__day-number {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.calendar__day--today .calendar__day-number {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-600);
  color: white;
  border-radius: var(--radius-full);
}

.calendar__day--selected {
  background-color: var(--color-primary-100);
  border-color: var(--color-primary-500);
}

.calendar__day--selected .calendar__day-number {
  color: var(--color-primary-700);
  font-weight: var(--font-weight-bold);
}

.calendar__day--disabled {
  background-color: var(--color-gray-50);
  cursor: not-allowed;
}

.calendar__day--disabled .calendar__day-number {
  color: var(--color-gray-300);
}

.calendar__day--booked::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background-color: var(--color-error-500);
  border-radius: var(--radius-full);
}

.calendar__day--available::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background-color: var(--color-success-500);
  border-radius: var(--radius-full);
}

/* Time slot picker */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.time-slot {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  text-align: center;
  background-color: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.time-slot:hover:not(.time-slot--disabled) {
  border-color: var(--color-primary-500);
  color: var(--color-primary-600);
}

.time-slot--selected {
  background-color: var(--color-primary-600);
  border-color: var(--color-primary-600);
  color: white;
}

.time-slot--disabled {
  background-color: var(--color-gray-100);
  color: var(--color-gray-400);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ----- Modal/Dialog ----- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 32rem;
  width: 100%;
  max-height: calc(100vh - var(--space-8));
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-base);
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal--lg {
  max-width: 42rem;
}

.modal--xl {
  max-width: 56rem;
}

.modal--fullscreen {
  max-width: none;
  width: calc(100% - var(--space-8));
  height: calc(100% - var(--space-8));
  max-height: none;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-gray-200);
}

.modal__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
}

.modal__close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
}

.modal__body {
  padding: var(--space-6);
  overflow-y: auto;
  max-height: calc(100vh - 16rem);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-6);
  border-top: 1px solid var(--color-gray-200);
  background-color: var(--color-gray-50);
}

/* Drawer (Side Modal) */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  background-color: white;
  box-shadow: var(--shadow-2xl);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer--left {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

.drawer--left.is-open {
  transform: translateX(0);
}

/* ----- Progress Indicators ----- */

/* Linear Progress Bar */
.progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress--sm {
  height: 0.25rem;
}

.progress--lg {
  height: 0.75rem;
}

.progress__bar {
  height: 100%;
  background-color: var(--color-primary-600);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  position: relative;
  overflow: hidden;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress__bar--success {
  background: var(--color-success-500);
}

.progress__bar--warning {
  background: var(--color-warning-500);
}

.progress__bar--error {
  background: var(--color-error-500);
}

/* Circular Progress */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__circle {
  fill: none;
  stroke-width: 8;
}

.progress-ring__bg {
  stroke: var(--color-gray-200);
}

.progress-ring__fill {
  stroke: var(--color-primary-600);
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-slow);
}

/* Step Indicator */
.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step__indicator {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  background-color: var(--color-gray-200);
  color: var(--color-gray-500);
  transition: all var(--transition-base);
  z-index: 1;
}

.step--completed .step__indicator {
  background-color: var(--color-success-500);
  color: white;
}

.step--current .step__indicator {
  background-color: var(--color-primary-600);
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step__label {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-500);
  text-align: center;
}

.step--current .step__label {
  color: var(--color-primary-700);
  font-weight: var(--font-weight-semibold);
}

.step__connector {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  right: -50%;
  height: 2px;
  background-color: var(--color-gray-200);
}

.step--completed .step__connector {
  background-color: var(--color-success-500);
}

/* Spinner/Loader */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary-600);
  border-radius: var(--radius-full);
  animation: spinner 1s linear infinite;
}

.spinner--sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.spinner--lg {
  width: 3rem;
  height: 3rem;
  border-width: 4px;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-gray-200) 25%,
    var(--color-gray-100) 50%,
    var(--color-gray-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----- Alert/Toast Notifications ----- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}

.alert__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.alert__content {
  flex: 1;
  min-width: 0;
}

.alert__title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.alert__message {
  font-size: var(--font-size-sm);
}

.alert__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: currentColor;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--transition-fast);
}

.alert__close:hover {
  opacity: 1;
}

/* Alert variants */
.alert--info {
  background-color: var(--color-info-50);
  border-color: var(--color-info-100);
  color: var(--color-info-700);
}

.alert--success {
  background-color: var(--color-success-50);
  border-color: var(--color-success-100);
  color: var(--color-success-700);
}

.alert--warning {
  background-color: var(--color-warning-50);
  border-color: var(--color-warning-100);
  color: var(--color-warning-700);
}

.alert--error {
  background-color: var(--color-error-50);
  border-color: var(--color-error-100);
  color: var(--color-error-700);
}

/* Toast Container */
.toast-container {
  position: fixed;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 24rem;
  width: 100%;
  pointer-events: none;
}

.toast-container--top-right {
  top: var(--space-4);
  right: var(--space-4);
}

.toast-container--top-left {
  top: var(--space-4);
  left: var(--space-4);
}

.toast-container--bottom-right {
  bottom: var(--space-4);
  right: var(--space-4);
}

.toast-container--bottom-left {
  bottom: var(--space-4);
  left: var(--space-4);
}

.toast-container--top-center {
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
}

.toast-container--bottom-center {
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
}

/* Toast */
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid;
  pointer-events: auto;
  animation: toast-in var(--transition-base) forwards;
}

.toast--out {
  animation: toast-out var(--transition-base) forwards;
}

.toast--info {
  border-left-color: var(--color-info-500);
}

.toast--success {
  border-left-color: var(--color-success-500);
}

.toast--warning {
  border-left-color: var(--color-warning-500);
}

.toast--error {
  border-left-color: var(--color-error-500);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--primary {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
}

.badge--secondary {
  background-color: var(--color-secondary-100);
  color: var(--color-secondary-700);
}

.badge--success {
  background-color: var(--color-success-100);
  color: var(--color-success-700);
}

.badge--warning {
  background-color: var(--color-warning-100);
  color: var(--color-warning-700);
}

.badge--error {
  background-color: var(--color-error-100);
  color: var(--color-error-700);
}

.badge--gray {
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip__content {
  position: absolute;
  z-index: var(--z-tooltip);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  color: white;
  background-color: var(--color-gray-900);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.tooltip:hover .tooltip__content {
  opacity: 1;
  visibility: visible;
}

.tooltip__content--top {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip:hover .tooltip__content--top {
  transform: translateX(-50%) translateY(-8px);
}

.tooltip__content--bottom {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}

.tooltip:hover .tooltip__content--bottom {
  transform: translateX(-50%) translateY(8px);
}

/* Accordion */
.accordion {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-gray-200);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-900);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.accordion__header:hover {
  background-color: var(--color-gray-50);
}

.accordion__icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-fast);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__item.is-open .accordion__content {
  max-height: 500px;
}

.accordion__body {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-gray-600);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-gray-200);
}

.tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--color-gray-700);
}

.tab--active {
  color: var(--color-primary-600);
  border-bottom-color: var(--color-primary-600);
}

.tab__panel {
  display: none;
  padding: var(--space-6) 0;
}

.tab__panel--active {
  display: block;
  animation: fade-in var(--transition-base);
}

/* ============================================
   5. ANIMATION KEYFRAMES
   ============================================ */

/* Fade In */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-in-out;
}

/* Fade In Up (Slide Up) */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out;
}

/* Slide Down */
@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slide-down 0.5s ease-out;
}

/* Slide Left */
@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  animation: slide-left 0.5s ease-out;
}

/* Slide Right */
@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-right {
  animation: slide-right 0.5s ease-out;
}

/* Scale In */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out;
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Delay utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }
.delay-1000 { animation-delay: 1000ms; }

/* Duration utilities */
.duration-200 { animation-duration: 200ms; }
.duration-300 { animation-duration: 300ms; }
.duration-500 { animation-duration: 500ms; }
.duration-700 { animation-duration: 700ms; }
.duration-1000 { animation-duration: 1000ms; }

/* ============================================
   6. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small devices (phones, 640px and up) */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:grid { display: grid; }
  .sm\:hidden { display: none; }
  
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-col { flex-direction: column; }
  
  .sm\:justify-start { justify-content: flex-start; }
  .sm\:justify-center { justify-content: center; }
  .sm\:justify-between { justify-content: space-between; }
  
  .sm\:items-start { align-items: flex-start; }
  .sm\:items-center { align-items: center; }
  
  .sm\:text-left { text-align: left; }
  .sm\:text-center { text-align: center; }
  .sm\:text-right { text-align: right; }
  
  .sm\:text-sm { font-size: var(--font-size-sm); }
  .sm\:text-base { font-size: var(--font-size-base); }
  .sm\:text-lg { font-size: var(--font-size-lg); }
  .sm\:text-xl { font-size: var(--font-size-xl); }
  .sm\:text-2xl { font-size: var(--font-size-2xl); }
  .sm\:text-3xl { font-size: var(--font-size-3xl); }
  .sm\:text-4xl { font-size: var(--font-size-4xl); }
  
  .sm\:p-4 { padding: var(--space-4); }
  .sm\:p-6 { padding: var(--space-6); }
  .sm\:p-8 { padding: var(--space-8); }
  
  .sm\:px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
  
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:hidden { display: none; }
  
  .md\:flex-row { flex-direction: row; }
  .md\:flex-col { flex-direction: column; }
  
  .md\:justify-start { justify-content: flex-start; }
  .md\:justify-center { justify-content: center; }
  .md\:justify-between { justify-content: space-between; }
  
  .md\:items-start { align-items: flex-start; }
  .md\:items-center { align-items: center; }
  
  .md\:text-left { text-align: left; }
  .md\:text-center { text-align: center; }
  .md\:text-right { text-align: right; }
  
  .md\:text-3xl { font-size: var(--font-size-3xl); }
  .md\:text-4xl { font-size: var(--font-size-4xl); }
  .md\:text-5xl { font-size: var(--font-size-5xl); }
  
  .md\:p-8 { padding: var(--space-8); }
  .md\:p-12 { padding: var(--space-12); }
  .md\:p-16 { padding: var(--space-16); }
  
  .md\:px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
  
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  
  .md\:h-64 { height: 16rem; }
  .md\:h-80 { height: 20rem; }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
  .lg\:hidden { display: none; }
  
  .lg\:flex-row { flex-direction: row; }
  .lg\:flex-col { flex-direction: column; }
  
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:justify-center { justify-content: center; }
  .lg\:justify-between { justify-content: space-between; }
  
  .lg\:items-start { align-items: flex-start; }
  .lg\:items-center { align-items: center; }
  
  .lg\:text-left { text-align: left; }
  .lg\:text-center { text-align: center; }
  .lg\:text-right { text-align: right; }
  
  .lg\:text-4xl { font-size: var(--font-size-4xl); }
  .lg\:text-5xl { font-size: var(--font-size-5xl); }
  .lg\:text-6xl { font-size: var(--font-size-6xl); }
  
  .lg\:p-10 { padding: var(--space-10); }
  .lg\:p-12 { padding: var(--space-12); }
  .lg\:p-20 { padding: var(--space-20); }
  
  .lg\:px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
  
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  
  .lg\:gap-12 { gap: var(--space-12); }
  .lg\:gap-16 { gap: var(--space-16); }
  
  .lg\:w-64 { width: 16rem; }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
  .xl\:block { display: block; }
  .xl\:flex { display: flex; }
  .xl\:hidden { display: none; }
  
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  
  .xl\:px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
}

/* Touch device adjustments */
@media (hover: none) {
  .card-hover:hover {
    transform: none;
  }
  
  .btn:hover:not(:disabled) {
    transform: none;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .btn:focus-visible,
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: 3px solid currentColor;
    outline-offset: 2px;
    box-shadow: none;
  }
  
  .card {
    border-width: 2px;
  }
}

/* ============================================
   7. PRINT STYLES
   ============================================ */

@media print {
  /* Reset backgrounds and colors */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }
  
  /* Typography */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    orphans: 3;
    widows: 3;
  }
  
  h1 { font-size: 24pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }
  
  p {
    orphans: 3;
    widows: 3;
  }
  
  /* Links */
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
    word-break: break-all;
  }
  
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
  
  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  /* Tables */
  table {
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr {
    page-break-inside: avoid;
  }
  
  /* Hide elements not needed for print */
  .no-print,
  .navbar,
  .mobile-menu,
  .sidebar,
  .btn:not(.print-btn),
  .modal-overlay,
  .toast-container,
  .spinner,
  .progress__bar::after,
  iframe,
  video,
  audio,
  embed,
  object,
  nav,
  footer,
  .tabs,
  .accordion__header {
    display: none !important;
  }
  
  /* Show elements hidden for screen */
  .print-only {
    display: block !important;
  }
  
  /* Layout adjustments */
  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Card adjustments */
  .card {
    border: 1px solid #ccc;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  /* Page breaks */
  .page-break {
    page-break-before: always;
  }
  
  .page-break-after {
    page-break-after: always;
  }
  
  .avoid-break {
    page-break-inside: avoid;
  }
  
  /* QR code for URL (if present) */
  .print-qr::after {
    content: "";
    display: block;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    margin-top: 1rem;
  }
  
  /* Print header */
  .print-header {
    border-bottom: 2px solid black;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Print footer */
  .print-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
    font-size: 10pt;
  }
  
  /* Page numbers */
  .page-number::after {
    content: counter(page);
  }
  
  .page-count::after {
    content: counter(pages);
  }
  
  /* Certificate styles */
  .certificate {
    border: 10px solid var(--color-primary-900);
    padding: 2rem;
    text-align: center;
  }
  
  .certificate__title {
    font-size: 32pt;
    font-weight: bold;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  
  .certificate__recipient {
    font-size: 24pt;
    font-style: italic;
    margin: 2rem 0;
    border-bottom: 2px solid black;
    display: inline-block;
    padding: 0 2rem 0.5rem;
  }
  
  .certificate__course {
    font-size: 18pt;
    font-weight: bold;
    margin: 1rem 0;
  }
  
  .certificate__date {
    font-size: 14pt;
    margin-top: 2rem;
  }
  
  .certificate__signature {
    margin-top: 3rem;
    display: flex;
    justify-content: space-around;
  }
  
  .certificate__signature-line {
    width: 200px;
    border-top: 1px solid black;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
    font-size: 10pt;
  }
}

/* ============================================
   8. ACCESSIBILITY STYLES
   ============================================ */

/* Focus visible styles */
:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Remove focus outline for mouse users but keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-900);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ARIA live regions */
[aria-live="polite"] {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

[aria-live="assertive"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* High contrast focus indicators */
@media (prefers-contrast: more) {
  :focus-visible {
    outline: 3px solid CanvasText;
    outline-offset: 2px;
  }
  
  .btn:focus-visible {
    outline-width: 3px;
    outline-offset: 2px;
  }
}

/* Reduced transparency */
@media (prefers-reduced-transparency: reduce) {
  .glass-effect {
    backdrop-filter: none;
    background: white;
  }
  
  .navbar {
    backdrop-filter: none;
    background: white;
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .animate-fade-in,
  .animate-slide-up,
  .animate-slide-down,
  .animate-slide-left,
  .animate-slide-right,
  .animate-scale-in,
  .animate-float,
  .animate-pulse,
  .animate-bounce,
  .animate-shake,
  .animate-spin {
    animation: none;
  }
  
  .card-hover:hover,
  .btn:hover:not(:disabled) {
    transform: none;
  }
  
  .progress__bar::after {
    animation: none;
  }
  
  .skeleton {
    animation: none;
    background: var(--color-gray-200);
  }
  
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Ensure sufficient color contrast */
.text-muted {
  color: var(--color-gray-600);
}

/* Error states with high visibility */
.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: var(--color-error-600);
  background-color: var(--color-error-50);
}

/* Success states */
.has-success .form-input,
.has-success .form-select,
.has-success .form-textarea {
  border-color: var(--color-success-600);
  background-color: var(--color-success-50);
}

/* Disabled state with clear visual indication */
[disabled],
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Keyboard navigation highlight */
.keyboard-focus :focus {
  outline: 3px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Touch target sizing for mobile */
@media (max-width: 768px) {
  .btn,
  .navbar__link,
  .form-checkbox,
  .form-radio,
  .calendar__day,
  .time-slot {
    min-height: 44px;
    min-width: 44px;
  }
  
  .mobile-menu__link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* ============================================
   9. CUSTOM STYLES FOR AEROMED PRIME
   ============================================ */

/* Glass morphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hero solid - no gradient */
.hero-gradient {
  background-color: var(--color-primary-900);
}

/* Text solid - no gradient */
.text-gradient {
  background: none;
  color: var(--color-primary-800);
  -webkit-text-fill-color: currentColor;
}

/* Section backgrounds - solid */
.section-gradient {
  background-color: white;
}

/* Timeline styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline__line {
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-gray-200);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline__dot {
  position: absolute;
  left: -1.75rem;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-500);
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--color-primary-500);
}

.timeline__dot--secondary {
  background-color: var(--color-secondary-500);
  box-shadow: 0 0 0 2px var(--color-secondary-500);
}

/* Video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Stats display */
.stat {
  text-align: center;
}

.stat__value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-600);
  line-height: 1;
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  margin-top: var(--space-1);
}

/* Tag/Badge pill */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
}

.tag--secondary {
  background-color: var(--color-secondary-50);
  color: var(--color-secondary-700);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-12);
}

.empty-state__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--space-4);
  color: var(--color-gray-400);
}

.empty-state__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.empty-state__message {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  max-width: 20rem;
  margin: 0 auto;
}

/* Status indicators */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
}

.status--online .status__dot {
  background-color: var(--color-success-500);
}

.status--offline .status__dot {
  background-color: var(--color-gray-400);
}

.status--away .status__dot {
  background-color: var(--color-warning-500);
}

.status--busy .status__dot {
  background-color: var(--color-error-500);
}

/* Pulse animation for live indicators */
.status--online .status__dot,
.status--live .status__dot {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--color-gray-200);
  margin: var(--space-6) 0;
}

.divider--vertical {
  width: 1px;
  height: auto;
  margin: 0 var(--space-6);
}

/* Icon box */
.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-color: var(--color-primary-100);
  color: var(--color-primary-600);
}

.icon-box--secondary {
  background-color: var(--color-secondary-100);
  color: var(--color-secondary-600);
}

.icon-box--lg {
  width: 5rem;
  height: 5rem;
}

.icon-box--sm {
  width: 2.5rem;
  height: 2.5rem;
}

/* List styles */
.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-3);
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Course content styles */
.prose {
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--color-gray-900);
  font-weight: var(--font-weight-bold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.prose p {
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-primary-600);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--color-primary-700);
}

.prose blockquote {
  border-left: 4px solid var(--color-primary-500);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--color-gray-600);
  font-style: italic;
}

.prose code {
  font-family: var(--font-family-mono);
  font-size: 0.875em;
  background-color: var(--color-gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-md);
  color: var(--color-error-600);
}

.prose pre {
  background-color: var(--color-gray-900);
  color: var(--color-gray-100);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Footer styles */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--space-12) 0;
}

.footer__link {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: white;
}

/* Social icons */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-800);
  border-radius: var(--radius-full);
  color: white;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-primary-600);
  transform: translateY(-2px);
}

/* ============================================
   10. ENHANCED VISION CARDS STYLES
   ============================================ */

/* Vision Card Base Styles - solid */
.vision-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Vision Card Hover Effects - subtle, no lift flop */
.vision-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(30, 58, 138, 0.15);
  border-color: var(--color-gray-300);
}

/* Vision Card Icon Container */
.vision-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Vision Card Title - solid, no gradient text */
.vision-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  transition: color 0.3s ease;
}

.vision-card:hover .vision-card__title {
  color: var(--color-primary-700);
}

/* Vision Card Content */
.vision-card__content {
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
}

.vision-card:hover .vision-card__content {
  color: var(--color-gray-800);
}

/* Vision Card Solid Backgrounds - no gradients */
.vision-card--primary {
  background-color: #ffffff;
  border-color: var(--color-gray-200);
}

.vision-card--primary .vision-card__icon {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
}

.vision-card--primary:hover {
  border-color: var(--color-gray-300);
}

.vision-card--secondary {
  background-color: #ffffff;
  border-color: var(--color-gray-200);
}

.vision-card--secondary .vision-card__icon {
  background-color: var(--color-secondary-50);
  color: var(--color-secondary-700);
}

.vision-card--secondary:hover {
  border-color: var(--color-gray-300);
}

.vision-card--purple {
  background-color: #ffffff;
  border-color: var(--color-gray-200);
}

.vision-card--purple .vision-card__icon {
  background-color: var(--color-gray-100);
  color: var(--color-primary-700);
}

.vision-card--purple:hover {
  border-color: var(--color-gray-300);
}

.vision-card:nth-child(3) {
  animation-delay: 4s;
}

/* Vision Card Stagger Animation */
.vision-card {
  opacity: 0;
  transform: translateY(30px);
  animation: vision-appear 0.8s ease-out forwards;
}

.vision-card:nth-child(1) {
  animation-delay: 0.2s;
}

.vision-card:nth-child(2) {
  animation-delay: 0.4s;
}

.vision-card:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes vision-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Vision Card Responsive Adjustments */
@media (max-width: 768px) {
  .vision-card {
    padding: 1.5rem !important;
  }
  
  .vision-card__icon {
    width: 3rem;
    height: 3rem;
  }
  
  .vision-card__title {
    font-size: var(--font-size-lg);
  }
  
  .vision-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Vision Card Interactive Elements */
.vision-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--color-gray-700);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.vision-card:hover .vision-card__badge {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}



/* ============================================
   11. GALLERY SECTION STYLES
   ============================================ */

/* Gallery Card Base Styles - border only */
.gallery-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* Gallery Card Hover Effects - subtle */
.gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gray-300);
}

/* Gallery Card Image Container */
.gallery-card__image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card__image {
  transform: scale(1.05);
}

/* Gallery Card Content */
.gallery-card__content {
  padding: 1.5rem;
}

.gallery-card__title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.gallery-card:hover .gallery-card__title {
  color: var(--color-primary-700);
}

.gallery-card__description {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
}

/* Gallery Section Header */
.gallery-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-section__title {
  font-size: 1.875rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.gallery-section__subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Gallery Section Background */
.gallery-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--color-gray-50);
}

@media (min-width: 768px) {
  .gallery-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Gallery Card Responsive Adjustments */
@media (max-width: 768px) {
  .gallery-card__image {
    height: 12rem;
  }
  
  .gallery-card__content {
    padding: 1.25rem;
  }
  
  .gallery-card__title {
    font-size: 1rem;
  }
  
  .gallery-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Gallery Card Animation */
@keyframes gallery-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-card {
  animation: gallery-fade-in 0.6s ease-out forwards;
}

.gallery-card:nth-child(1) { animation-delay: 0.1s; }
.gallery-card:nth-child(2) { animation-delay: 0.2s; }
.gallery-card:nth-child(3) { animation-delay: 0.3s; }
.gallery-card:nth-child(4) { animation-delay: 0.4s; }
.gallery-card:nth-child(5) { animation-delay: 0.5s; }
.gallery-card:nth-child(6) { animation-delay: 0.6s; }

/* Gallery Card Badge */
.gallery-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-card__badge {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}



/* ============================================
   5. GREEN COLOR OVERRIDES (#7AC0E1)
   ============================================ */

/* Background colors */
.bg-green-50 { background-color: #f0f8fd !important; }
.bg-green-100 { background-color: #deedf7 !important; }
.bg-green-200 { background-color: #bddaef !important; }
.bg-green-300 { background-color: #91c2e4 !important; }
.bg-green-400 { background-color: #7AC0E1 !important; }
.bg-green-500 { background-color: #4da6d6 !important; }
.bg-green-600 { background-color: #3389c1 !important; }
.bg-green-700 { background-color: #2b6f9d !important; }
.bg-green-800 { background-color: #285c81 !important; }
.bg-green-900 { background-color: #254d6b !important; }

/* Hover background colors */
.hover\:bg-green-50:hover { background-color: #f0f8fd !important; }
.hover\:bg-green-100:hover { background-color: #deedf7 !important; }
.hover\:bg-green-200:hover { background-color: #bddaef !important; }
.hover\:bg-green-300:hover { background-color: #91c2e4 !important; }
.hover\:bg-green-400:hover { background-color: #7AC0E1 !important; }
.hover\:bg-green-500:hover { background-color: #4da6d6 !important; }
.hover\:bg-green-600:hover { background-color: #3389c1 !important; }
.hover\:bg-green-700:hover { background-color: #2b6f9d !important; }
.hover\:bg-green-800:hover { background-color: #285c81 !important; }
.hover\:bg-green-900:hover { background-color: #254d6b !important; }

/* Text colors */
.text-green-50 { color: #f0f8fd !important; }
.text-green-100 { color: #deedf7 !important; }
.text-green-200 { color: #bddaef !important; }
.text-green-300 { color: #91c2e4 !important; }
.text-green-400 { color: #7AC0E1 !important; }
.text-green-500 { color: #4da6d6 !important; }
.text-green-600 { color: #3389c1 !important; }
.text-green-700 { color: #2b6f9d !important; }
.text-green-800 { color: #285c81 !important; }
.text-green-900 { color: #254d6b !important; }

/* Border colors */
.border-green-100 { border-color: #deedf7 !important; }
.border-green-200 { border-color: #bddaef !important; }
.border-green-300 { border-color: #91c2e4 !important; }
.border-green-400 { border-color: #7AC0E1 !important; }
.border-green-500 { border-color: #4da6d6 !important; }
.border-green-600 { border-color: #3389c1 !important; }
.border-green-700 { border-color: #2b6f9d !important; }
.border-green-800 { border-color: #285c81 !important; }
.border-green-900 { border-color: #254d6b !important; }

/* Focus ring colors */
.focus\:ring-green-500:focus { --tw-ring-color: #4da6d6 !important; }
.focus\:ring-green-600:focus { --tw-ring-color: #3389c1 !important; }

/* Divide colors */
.divide-green-200 > :not([hidden]) ~ :not([hidden]) { border-color: #bddaef !important; }

/* Gradient from/to green */
.from-green-400 { --tw-gradient-from: #7AC0E1 !important; }
.from-green-500 { --tw-gradient-from: #4da6d6 !important; }
.from-green-600 { --tw-gradient-from: #3389c1 !important; }
.to-green-400 { --tw-gradient-to: #7AC0E1 !important; }
.to-green-500 { --tw-gradient-to: #4da6d6 !important; }
.to-green-600 { --tw-gradient-to: #3389c1 !important; }
.via-green-500 { --tw-gradient-via: #4da6d6 !important; }

/* Ring colors */
.ring-green-500 { --tw-ring-color: #4da6d6 !important; }

/* Placeholder colors */
.placeholder-green-300::placeholder { color: #91c2e4 !important; }
.placeholder-green-400::placeholder { color: #7AC0E1 !important; }

/* Shadow colors */
.shadow-green-500\/20 { --tw-shadow-color: rgb(77 166 214 / 0.2) !important; }
.shadow-green-500\/10 { --tw-shadow-color: rgb(77 166 214 / 0.1) !important; }
.shadow-green-500\/25 { --tw-shadow-color: rgb(77 166 214 / 0.25) !important; }

/* Outline colors */
.outline-green-500 { outline-color: #4da6d6 !important; }
