/* CSS Custom Properties (Variables) */
:root {
  /* Colors - Traditional Islamic */
  --primary-color: #006233; /* Islamic Green */
  --primary-light: #00a651; /* Light Islamic Green */
  --primary-dark: #004225; /* Dark Islamic Green */

  --secondary-color: #ffd700; /* Islamic Gold */
  --secondary-light: #ffed4e; /* Light Gold */
  --secondary-dark: #cc9900; /* Dark Gold */

  --accent-color: #2c5f41; /* Traditional Green Accent */
  --accent-light: #4f8a6b; /* Light Green Accent */

  --success-color: #006233; /* Islamic Green */
  --warning-color: #cc9900; /* Islamic Gold */
  --danger-color: #8b0000; /* Dark Red */
  --info-color: #2c5f41; /* Green Info */

  /* Text colors */
  --text-primary: #1f2937; /* Dark gray */
  --text-secondary: #6b7280; /* Medium gray */
  --text-muted: #9ca3af; /* Light gray */
  --text-inverse: #ffffff; /* White */

  /* Background colors */
  --bg-primary: #ffffff; /* Pure White */
  --bg-secondary: #f8fffe; /* Very Light Green Tint */
  --bg-muted: #f0fff4; /* Light Green Background */
  --bg-dark: #003d1f; /* Deep Islamic Green */

  /* Border colors */
  --border-color: #e5e7eb; /* Light gray */
  --border-hover: #d1d5db; /* Medium gray */
  --border-focus: var(--primary-color);

  /* Typography */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", sans-serif;
  --font-family-arabic: "Noto Sans Arabic", "Arial Unicode MS", sans-serif;

  /* Font sizes */
  --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 weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 1rem; /* 16px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-2xl: 3rem; /* 48px */
  --spacing-3xl: 4rem; /* 64px */

  /* Border radius */
  --border-radius-sm: 0.25rem; /* 4px */
  --border-radius-md: 0.375rem; /* 6px */
  --border-radius-lg: 0.5rem; /* 8px */
  --border-radius-xl: 1rem; /* 16px */
  --border-radius-full: 9999px; /* Full circle */

  /* 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 -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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 70px;
  --footer-height: auto;

  /* Breakpoints (for JavaScript) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* Dark mode variables (if implemented later) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-inverse: #111827;

    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-muted: #374151;
    --bg-dark: #ffffff;

    --border-color: #374151;
    --border-hover: #4b5563;
  }
}

/* Print styles */
@media print {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --border-color: #cccccc;
  }
}
