/* ========================================
   AILP Theme Variables
   Light Mode Default + Dark Mode Toggle
   ======================================== */

:root {
  /* Primary Colors */
  --primary-color: #c6e757;
  --secondary-color: #00c288;
  --tertiary-color: #57e7e6;
  --quaternary-color: #6b6bfe;
  --quinary-color: #fd8e01;

  /* Background Colors */
  --bg-color: #f5f7fa;
  --bg-secondary: #ffffff;
  --card-bg: #ffffff;
  --input-bg: #f8fafc;

  /* Text Colors */
  --text-color: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;

  /* Border Colors */
  --border-color: #e2e8f0;
  --input-border: #cbd5e1;

  /* Status Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;

  /* Shadows */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Border Radius */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition: all 0.3s ease;

  /* Fonts */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #c6e757 0%, #fbbf24 100%);
  --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
}

/* Dark Theme */
body.dark-theme {
  --bg-color: #0f172a;
  --bg-secondary: #1e293b;
  --card-bg: #1e293b;
  --input-bg: #334155;
  --text-color: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border-color: #334155;
  --input-border: #475569;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #1a1f35 100%);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-success {
  color: var(--success-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-muted {
  color: var(--text-secondary);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Hide/Show */
.hidden {
  display: none !important;
}

/* Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
