/* filepath: /apps/js/shared/theme-core.css */
/*-- scss:defaults --*/

/*-- scss:rules --*/

/* ============================================================================
   SECOND DIFFERENCE SOLUTIONS - CENTRALIZED DESIGN SYSTEM
   ============================================================================
   
   SINGLE SOURCE OF TRUTH for all CSS variables and shared components.
   Import this file FIRST in all applications.
   
   SECTIONS:
   1. CSS Custom Properties (Design Tokens)
   2. Typography System
   3. Color Utilities
   4. Layout Components
   5. Form Elements
   6. Buttons
   7. Cards & Containers
   8. Navigation Components
   9. Loading & Status States
   10. Toasts & Notifications
   11. Utility Classes
   12. Animation Library
   13. Responsive Utilities
   
   USAGE:
   css:
     - /apps/js/shared/theme-core.css   [ALWAYS FIRST]
     - /apps/js/shared/[component].css  [As needed]
     - /apps/js/[app]/[app].css         [App-specific]
     - /apps/js/[app]/[app]-mobile.css  [Mobile overrides - LAST]
   
   @version 2.0.0 (Consolidated)
   @author Second Difference Solutions, LLC
   @updated January 2026
   ============================================================================ */


/* ============================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================ */

:root {
  /* -------------------------------------------------------------------------
     Brand Colors
     ------------------------------------------------------------------------- */
  --sds-navy: #002855;
  --sds-navy-dark: #001a3d;
  --sds-navy-light: #003875;
  --sds-gold: #EAAA00;
  --sds-gold-light: #FFB71B;
  --sds-gold-dark: #C89200;

  /* -------------------------------------------------------------------------
     Semantic Colors
     ------------------------------------------------------------------------- */
  --color-primary: var(--sds-navy);
  --color-primary-hover: var(--sds-navy-light);
  --color-secondary: var(--sds-gold);
  --color-secondary-hover: var(--sds-gold-light);
  
  /* Status Colors */
  --color-success: #059669;
  --color-success-bg: #d1fae5;
  --color-success-border: #10b981;
  
  --color-warning: #d97706;
  --color-warning-bg: #fef3c7;
  --color-warning-border: #fbbf24;
  
  --color-error: #dc2626;
  --color-error-bg: #fee2e2;
  --color-error-border: #f87171;
  
  --color-info: #2563eb;
  --color-info-bg: #dbeafe;
  --color-info-border: #60a5fa;

  /* Danger alias for consistency */
  --color-danger: var(--color-error);
  --color-danger-bg: var(--color-error-bg);

  /* -------------------------------------------------------------------------
     Neutral Palette (Tailwind-compatible)
     Use these exact values for fallbacks throughout the project
     ------------------------------------------------------------------------- */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Legacy aliases (for themes.css compatibility) */
  --white: #ffffff;
  --gray-light: var(--gray-200);

  /* -------------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------------- */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', SFMono-Regular, 
               Menlo, Monaco, Consolas, monospace;
  
  /* Font Sizes (fluid typography with clamp) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-xl: clamp(1.15rem, 1.1rem + 0.25vw, 1.25rem);
  --text-2xl: clamp(1.4rem, 1.3rem + 0.5vw, 1.5rem);
  --text-3xl: clamp(1.7rem, 1.5rem + 1vw, 1.875rem);
  --text-4xl: clamp(2rem, 1.75rem + 1.25vw, 2.25rem);
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* -------------------------------------------------------------------------
     Spacing Scale (Numeric - primary system)
     ------------------------------------------------------------------------- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Spacing Scale (Descriptive aliases for themes.css compatibility) */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);

  /* -------------------------------------------------------------------------
     Border Radius
     ------------------------------------------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  
  /* Legacy alias */
  --radius: var(--radius-md);

  /* -------------------------------------------------------------------------
     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-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* Brand shadows */
  --shadow-navy: 0 4px 14px 0 rgba(0, 40, 85, 0.15);
  --shadow-gold: 0 4px 14px 0 rgba(234, 170, 0, 0.25);

  /* -------------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* -------------------------------------------------------------------------
     Z-Index Scale
     ------------------------------------------------------------------------- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* -------------------------------------------------------------------------
     Mobile Sidebar (for mobile-sidebar.css compatibility)
     ------------------------------------------------------------------------- */
  --sidebar-width: 280px;
  --sidebar-bg: var(--sds-navy);
  --sidebar-text: #ffffff;
  --sidebar-accent: var(--sds-gold);
  --sidebar-overlay: rgba(0, 0, 0, 0.5);
  --sidebar-transition: 0.3s ease;
  
  /* -------------------------------------------------------------------------
     Breakpoints (reference only - use in media queries)
     ------------------------------------------------------------------------- */
  /* 
   * Mobile: max-width: 768px
   * Small Mobile: max-width: 480px
   * Tablet: 769px - 1024px
   * Desktop: min-width: 1025px
   */
}


/* ============================================================================
   2. TYPOGRAPHY SYSTEM
   ============================================================================ */

/* Base Typography */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--gray-900);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Paragraphs */
p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

/* Text utilities */
.text-muted { color: var(--gray-500); }
.text-small { font-size: var(--text-sm); }
.text-large { font-size: var(--text-lg); }

/* Code */
code, pre, .font-mono {
  font-family: var(--font-mono);
}

code {
  font-size: 0.875em;
  padding: 0.125em 0.375em;
  background-color: var(--gray-100);
  border-radius: var(--radius-sm);
  color: var(--gray-800);
}

pre {
  padding: var(--space-4);
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: var(--text-sm);
}

pre code {
  padding: 0;
  background: transparent;
  border-radius: 0;
}


/* ============================================================================
   3. COLOR UTILITIES
   ============================================================================ */

/* Background */
.bg-navy { background-color: var(--sds-navy); }
.bg-gold { background-color: var(--sds-gold); }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }

/* Text */
.text-navy { color: var(--sds-navy); }
.text-gold { color: var(--sds-gold); }
.text-white { color: #ffffff; }
.text-gray-500 { color: var(--gray-500); }
.text-gray-700 { color: var(--gray-700); }

/* Gradients */
.gradient-navy {
  background: linear-gradient(135deg, var(--sds-navy) 0%, var(--sds-navy-dark) 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, var(--sds-gold) 0%, var(--sds-gold-dark) 100%);
}


/* ============================================================================
   4. LAYOUT COMPONENTS
   ============================================================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }


/* ============================================================================
   5. FORM ELEMENTS
   ============================================================================ */

/* Input Base */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-800);
  background-color: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), 
              box-shadow var(--transition-fast);
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sds-navy);
  box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.1);
}

.input:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--gray-100);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Input Label */
.input-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
}

/* Input Group */
.input-group {
  margin-bottom: var(--space-4);
}

/* Select Dropdown */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--space-10);
}


/* ============================================================================
   6. BUTTONS
   ============================================================================ */

/* Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary Button (Navy) */
.btn-primary {
  color: #ffffff;
  background-color: var(--sds-navy);
  border-color: var(--sds-navy);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--sds-navy-light);
  border-color: var(--sds-navy-light);
  transform: translateY(-1px);
}

/* Secondary Button (Gold) */
.btn-secondary {
  color: var(--sds-navy);
  background-color: var(--sds-gold);
  border-color: var(--sds-gold);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--sds-gold-light);
  border-color: var(--sds-gold-light);
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  color: var(--sds-navy);
  background-color: transparent;
  border-color: var(--sds-navy);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--sds-navy);
  color: #ffffff;
}

/* Ghost Button */
.btn-ghost {
  color: var(--gray-700);
  background-color: transparent;
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--gray-100);
}

/* Danger Button */
.btn-danger {
  color: #ffffff;
  background-color: var(--color-error);
  border-color: var(--color-error);
}

.btn-danger:hover:not(:disabled) {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

/* Button Group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}


/* ============================================================================
   7. CARDS & CONTAINERS
   ============================================================================ */

/* Card Base */
.card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* Panel */
.panel {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

/* Section */
.section {
  padding: var(--space-8) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin: 0;
}


/* ============================================================================
   8. NAVIGATION COMPONENTS (used in analyzer apps)
   ============================================================================ */

/* Navigation Cards Grid */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

/* Metric Card */
.metric-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
}

.metric-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--gray-900);
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--space-1);
}


/* ============================================================================
   9. LOADING & STATUS STATES
   ============================================================================ */

/* Authentication Loading (shared across all apps) */
.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--space-4);
}

/* Spinner - Standard */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--sds-navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Spinner - Small */
.spinner-sm,
.spinner-small {
  width: 24px;
  height: 24px;
  border-width: 2px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--sds-navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Spinner - Large */
.spinner-lg {
  width: 56px;
  height: 56px;
  border-width: 4px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--sds-navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12);
  color: var(--gray-500);
}

/* Loading Text */
.loading-text {
  padding: var(--space-8);
  text-align: center;
  color: var(--gray-500);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  text-align: center;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-text {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.empty-state-subtext {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
}

.badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.badge-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

.badge-info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

/* Alert Boxes */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  margin-bottom: var(--space-4);
}

.alert-success {
  background-color: var(--color-success-bg);
  border-left-color: var(--color-success);
  color: #065f46;
}

.alert-warning {
  background-color: var(--color-warning-bg);
  border-left-color: var(--color-warning);
  color: #92400e;
}

.alert-error {
  background-color: var(--color-error-bg);
  border-left-color: var(--color-error);
  color: #991b1b;
}

.alert-info {
  background-color: var(--color-info-bg);
  border-left-color: var(--color-info);
  color: #1e40af;
}


/* ============================================================================
   10. TOASTS & NOTIFICATIONS
   ============================================================================ */

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Toast */
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--gray-800);
  color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gray-600);
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  background: var(--color-success);
  border-left-color: var(--color-success-border);
}

.toast.warning {
  background: var(--color-warning);
  border-left-color: var(--color-warning-border);
}

.toast.error {
  background: var(--color-error);
  border-left-color: var(--color-error-border);
}

.toast.info {
  background: var(--color-info);
  border-left-color: var(--color-info-border);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* ============================================================================
   11. UTILITY CLASSES
   ============================================================================ */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

/* Spacing - Margin */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-6 { margin-bottom: var(--space-6); }

/* Spacing - Padding */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Width */
.w-full { width: 100%; }
.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* User Select */
.select-none { user-select: none; }
.select-all { user-select: all; }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }


/* ============================================================================
   12. ANIMATION LIBRARY
   ============================================================================ */

/* Fade In */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade In Up */
.fade-in-up {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Right */
.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ============================================================================
   13. RESPONSIVE UTILITIES
   ============================================================================ */

/* Hide on mobile (max-width: 768px) */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

/* Hide on tablet and up (min-width: 769px) */
@media (min-width: 769px) {
  .hide-tablet-up { display: none !important; }
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }
}

@media (max-width: 480px) {
  .nav-cards {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .spinner,
  .spinner-sm,
  .spinner-small,
  .spinner-lg {
    animation: none;
  }
}


/* ============================================================================
   END OF THEME-CORE.CSS
   ============================================================================ */