/* ============================================================================
   SOPHIA COLLEGE - UNIFIED LOGGING SYSTEM
   Design System for: Out of Class, Infringements, Positive Affirmations
   Version: 2.0 - October 2025
   
   This stylesheet provides consistent layout, typography, spacing, and
   components across all three staff logging pages.
   ============================================================================ */

/* ============================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================================ */

:root {
  /* === BRAND COLORS === */
  --brand-primary: #00488d;           /* Sophia College Blue */
  --brand-secondary: #004a73;         /* Deep Blue */
  --brand-accent-default: #660000;    /* Maroon (general use) */
  
  /* === CONTEXTUAL ACCENT COLORS (per page) === */
  --accent-infringement: #8B0000;     /* Dark Red/Maroon for Infringements */
  --accent-outofclass: #F59E0B;       /* Amber/Orange for Out of Class */
  --accent-affirmation: #059669;      /* Green/Teal for Positive Affirmations */
  
  /* === SEMANTIC COLORS === */
  --success: #10b981;
  --success-dark: #059669;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --error: #ef4444;
  --error-dark: #dc2626;
  --info: #3b82f6;
  --info-dark: #2563eb;
  
  /* === NEUTRAL PALETTE === */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  /* === TEXT COLORS === */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-700);
  --text-tertiary: var(--neutral-500);
  --text-muted: var(--neutral-400);
  --text-inverse: #ffffff;
  --text-link: var(--brand-primary);
  --text-link-hover: var(--brand-secondary);
  
  /* === BACKGROUND COLORS === */
  --bg-page: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  --bg-card: #ffffff;
  --bg-card-hover: var(--neutral-50);
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.5);
  
  /* === BORDER COLORS === */
  --border-light: var(--neutral-200);
  --border-medium: var(--neutral-300);
  --border-dark: var(--neutral-400);
  --border-focus: var(--brand-primary);
  
  /* === SHADOW SYSTEM === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 20px 48px rgba(0, 0, 0, 0.2);
  --shadow-focus: 0 0 0 3px rgba(0, 72, 141, 0.15);
  
  /* === SPACING SCALE (8px base grid) === */
  --space-0: 0;
  --space-1: 4px;    /* 0.5 unit */
  --space-2: 8px;    /* 1 unit */
  --space-3: 12px;   /* 1.5 units */
  --space-4: 16px;   /* 2 units */
  --space-5: 20px;   /* 2.5 units */
  --space-6: 24px;   /* 3 units */
  --space-8: 32px;   /* 4 units */
  --space-10: 40px;  /* 5 units */
  --space-12: 48px;  /* 6 units */
  --space-16: 64px;  /* 8 units */
  --space-20: 80px;  /* 10 units */
  
  /* === BORDER RADIUS === */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  
  /* === TYPOGRAPHY === */
  --font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* === TRANSITIONS & ANIMATIONS === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === Z-INDEX SCALE === */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
  
  /* === LAYOUT === */
  --max-width-content: 1000px;
  --nav-height: 64px;
  --header-height: auto;
}

/* ============================================================================
   2. PAGE-SPECIFIC ACCENT OVERRIDES
   ============================================================================ */

/* Infringements Page */
body[data-page="infringements"] {
  --accent-color: var(--accent-infringement);
  --accent-light: rgba(139, 0, 0, 0.1);
  --accent-gradient: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
}

/* Out of Class Page */
body[data-page="outofclass"] {
  --accent-color: var(--accent-outofclass);
  --accent-light: rgba(245, 158, 11, 0.1);
  --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

/* Positive Affirmations Page */
body[data-page="affirmations"] {
  --accent-color: var(--accent-affirmation);
  --accent-light: rgba(5, 150, 105, 0.1);
  --accent-gradient: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

/* ============================================================================
   3. RESET & BASE STYLES
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   4. UNIFIED PAGE LAYOUT
   ============================================================================ */

.unified-logging-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-6);
  animation: fadeInUp 0.6s var(--ease-out);
}

@media (max-width: 768px) {
  .unified-logging-container {
    padding: var(--space-4);
  }
}

/* ============================================================================
   5. PAGE HEADER COMPONENT
   ============================================================================ */

.unified-page-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.unified-page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--accent-gradient);
}

.unified-page-logo {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-4);
  display: block;
}

.unified-page-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.025em;
}

.unified-page-subtitle {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.unified-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-light);
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--accent-color);
}

/* ============================================================================
   6. SECTION COMPONENTS
   ============================================================================ */

.unified-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.unified-section:hover {
  box-shadow: var(--shadow-md);
}

.unified-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.unified-section-icon {
  font-size: var(--text-2xl);
  line-height: 1;
}

.unified-section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  flex: 1;
}

.unified-section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ============================================================================
   7. STUDENT SEARCH COMPONENT
   ============================================================================ */

.unified-student-search {
  position: relative;
}

.unified-search-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.unified-search-input {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.unified-search-input:hover {
  border-color: var(--border-medium);
}

.unified-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
  background: var(--bg-input-focus);
}

.unified-search-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Search Dropdown Results */
.unified-search-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  display: none;
  animation: fadeInDown 0.2s var(--ease-out);
}

.unified-search-dropdown.active {
  display: block;
}

.unified-search-result {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.unified-search-result:last-child {
  border-bottom: none;
}

.unified-search-result:hover {
  background: var(--bg-card-hover);
}

.unified-search-result-name {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-base);
}

.unified-search-result-meta {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.unified-search-no-results {
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================================
   8. STUDENT PREVIEW CARD
   ============================================================================ */

.unified-student-preview {
  background: linear-gradient(135deg, var(--neutral-50) 0%, #ffffff 100%);
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  display: none;
  animation: scaleIn 0.4s var(--ease-out);
  box-shadow: var(--shadow-md);
}

.unified-student-preview.active {
  display: block;
}

.unified-student-preview-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
}

/* Student Photo */
.unified-student-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.unified-student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unified-student-photo-fallback {
  font-size: 2.5rem;
  color: var(--text-muted);
}

/* Student Info */
.unified-student-info {
  flex: 1;
}

.unified-student-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.unified-student-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.unified-student-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.unified-student-meta-icon {
  font-size: var(--text-base);
}

/* Student Stats */
.unified-student-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.unified-student-stat {
  text-align: right;
}

.unified-student-stat-value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--accent-color);
  line-height: 1;
}

.unified-student-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Student Preview */
@media (max-width: 640px) {
  .unified-student-preview-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .unified-student-photo {
    margin: 0 auto;
  }
  
  .unified-student-metadata {
    justify-content: center;
  }
  
  .unified-student-stats {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-6);
  }
  
  .unified-student-stat {
    text-align: center;
  }
}

/* ============================================================================
   9. FORM ELEMENTS
   ============================================================================ */

.unified-form-group {
  margin-bottom: var(--space-6);
}

.unified-form-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.unified-form-label-required::after {
  content: '*';
  color: var(--error);
  margin-left: var(--space-1);
}

.unified-form-input,
.unified-form-select,
.unified-form-textarea {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.unified-form-input:hover,
.unified-form-select:hover,
.unified-form-textarea:hover {
  border-color: var(--border-medium);
}

.unified-form-input:focus,
.unified-form-select:focus,
.unified-form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
  background: var(--bg-input-focus);
}

.unified-form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: var(--leading-relaxed);
}

.unified-form-help {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* ============================================================================
   10. DATE/TIME SELECTION
   ============================================================================ */

.unified-datetime-section {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px dashed var(--border-medium);
}

.unified-datetime-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.unified-datetime-option {
  display: flex;
  align-items: flex-start;
  padding: var(--space-4);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-card);
}

.unified-datetime-option:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.unified-datetime-option input[type="radio"] {
  margin-top: 2px;
  margin-right: var(--space-3);
  accent-color: var(--accent-color);
  transform: scale(1.2);
  cursor: pointer;
}

.unified-datetime-option input[type="radio"]:checked ~ .unified-datetime-label {
  color: var(--accent-color);
  font-weight: var(--font-semibold);
}

.unified-datetime-option:has(input[type="radio"]:checked) {
  border-color: var(--accent-color);
  background: var(--accent-light);
}

.unified-datetime-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.unified-datetime-label-text {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.unified-datetime-preview {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
}

.unified-datetime-custom-inputs {
  display: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  animation: fadeInUp 0.3s var(--ease-out);
}

.unified-datetime-custom-inputs.active {
  display: block;
}

.unified-datetime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .unified-datetime-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   11. BUTTONS
   ============================================================================ */

.unified-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  font-family: var(--font-family);
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

/* Primary Button (Submit) */
.unified-btn-primary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.unified-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-base);
}

.unified-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.unified-btn-primary:hover:not(:disabled)::before {
  left: 100%;
}

.unified-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.unified-btn-primary:disabled {
  background: var(--neutral-300);
  color: var(--neutral-500);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* Secondary Button */
.unified-btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.unified-btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-dark);
}

.unified-btn-secondary:disabled {
  color: var(--text-muted);
  border-color: var(--border-light);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Button Sizes */
.unified-btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.unified-btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
}

/* Full Width Button */
.unified-btn-block {
  width: 100%;
}

/* ============================================================================
   12. SEGMENTED CONTROL (for Infringements: Uniform vs Learning)
   ============================================================================ */

.unified-segmented-control {
  display: inline-flex;
  background: var(--neutral-100);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  margin-bottom: var(--space-6);
}

.unified-segment-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  font-family: var(--font-family);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.unified-segment-btn:hover:not(.active) {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.unified-segment-btn.active {
  background: var(--bg-card);
  color: var(--accent-color);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   13. ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================================================
   14. UTILITY CLASSES
   ============================================================================ */

.unified-hidden {
  display: none !important;
}

.unified-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.unified-text-center {
  text-align: center;
}

.unified-text-right {
  text-align: right;
}

.unified-mt-0 { margin-top: var(--space-0); }
.unified-mt-2 { margin-top: var(--space-2); }
.unified-mt-4 { margin-top: var(--space-4); }
.unified-mt-6 { margin-top: var(--space-6); }
.unified-mt-8 { margin-top: var(--space-8); }

.unified-mb-0 { margin-bottom: var(--space-0); }
.unified-mb-2 { margin-bottom: var(--space-2); }
.unified-mb-4 { margin-bottom: var(--space-4); }
.unified-mb-6 { margin-bottom: var(--space-6); }
.unified-mb-8 { margin-bottom: var(--space-8); }

/* ============================================================================
   15. TOAST NOTIFICATIONS
   ============================================================================ */

.unified-toast {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  min-width: 300px;
  max-width: 500px;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  display: none;
  animation: slideInRight 0.3s var(--ease-out);
}

.unified-toast.active {
  display: block;
}

.unified-toast-success {
  border-left: 4px solid var(--success);
}

.unified-toast-error {
  border-left: 4px solid var(--error);
}

.unified-toast-warning {
  border-left: 4px solid var(--warning);
}

.unified-toast-info {
  border-left: 4px solid var(--info);
}

/* ============================================================================
   16. LOADING STATES
   ============================================================================ */

.unified-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-6) auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.unified-skeleton {
  background: linear-gradient(
    90deg,
    var(--neutral-200) 0%,
    var(--neutral-100) 50%,
    var(--neutral-200) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================================================
   END OF UNIFIED LOGGING SYSTEM STYLESHEET
   ============================================================================ */
