/* Unified Theme System for Mentora */

:root {
  /* Brand Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #3ECDC1;  /* Brand Primary */
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  /* Neutral Colors */
  --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;

  /* Semantic Colors */
  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-700: #15803d;

  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-700: #b45309;

  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-700: #b91c1c;

  --info-50: #eff6ff;
  --info-500: #3b82f6;
  --info-700: #1d4ed8;

  /* Light Theme (Default) */
  --bg-primary: var(--neutral-50);
  --bg-secondary: var(--neutral-100);
  --bg-tertiary: var(--neutral-200);
  
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-700);
  --text-tertiary: var(--neutral-500);
  
  --border-color: var(--neutral-200);
  --border-color-hover: var(--neutral-300);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  
  /* Component Specific */
  --card-bg: var(--bg-primary);
  --card-border: var(--border-color);
  --card-shadow: var(--shadow-sm);
  
  --input-bg: var(--bg-primary);
  --input-border: var(--border-color);
  --input-focus-border: var(--primary-500);
  
  --button-primary-bg: var(--primary-500);
  --button-primary-text: white;
  --button-secondary-bg: var(--neutral-200);
  --button-secondary-text: var(--neutral-700);
  
  --header-bg: var(--bg-primary);
  --header-border: var(--border-color);
  
  --footer-bg: var(--bg-secondary);
  --footer-text: var(--text-secondary);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: var(--neutral-900);
  --bg-secondary: var(--neutral-800);
  --bg-tertiary: var(--neutral-700);
  
  --text-primary: var(--neutral-50);
  --text-secondary: var(--neutral-200);
  --text-tertiary: var(--neutral-400);
  
  --border-color: var(--neutral-700);
  --border-color-hover: var(--neutral-600);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
  
  /* Component Specific */
  --card-bg: var(--bg-secondary);
  --card-border: var(--border-color);
  --card-shadow: var(--shadow-sm);
  
  --input-bg: var(--bg-secondary);
  --input-border: var(--border-color);
  --input-focus-border: var(--primary-400);
  
  --button-primary-bg: var(--primary-600);
  --button-primary-text: white;
  --button-secondary-bg: var(--neutral-700);
  --button-secondary-text: var(--neutral-200);
  
  --header-bg: var(--bg-secondary);
  --header-border: var(--border-color);
  
  --footer-bg: var(--bg-primary);
  --footer-text: var(--text-secondary);
}

/* Accessibility Classes */
.high-contrast {
  --text-primary: #000000;
  --text-secondary: #000000;
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --border-color: #000000;
}

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

.border { border: 1px solid var(--border-color); }
.border-hover:hover { border-color: var(--border-color-hover); }

/* Component Classes */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.button {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s;
}

.button-primary {
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.button-secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}

/* Form Elements */
.input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
}

.input:focus {
  border-color: var(--input-focus-border);
  outline: none;
}

/* Layout */
.header,
.modern-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

/* Animations */
.theme-transition {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Print Styles */
@media print {
  :root {
    --bg-primary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
  }
  
  .no-print {
    display: none !important;
  }
} 