@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

:root {
  --font-size: 16px;
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #fff;
  --card-foreground: #0f172a;
  --popover: #fff;
  --popover-foreground: #0f172a;
  --primary: #7bc67b;
  --primary-foreground: #fff;
  --secondary: #0f172a;
  --secondary-foreground: #fff;
  --muted: #e2e8f0;
  --muted-foreground: #64748b;
  --accent: #f4c95d;
  --accent-foreground: #0f172a;
  --destructive: #d4183d;
  --destructive-foreground: #fff;
  --border: rgba(15, 23, 42, 0.1);
  --input: transparent;
  --input-background: #fff;
  --ring: #7bc67b;
  --radius: 0.75rem;
}

.dark {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --popover: #1e293b;
  --popover-foreground: #f8fafc;
  --primary: #7bc67b;
  --primary-foreground: #0f172a;
  --secondary: #334155;
  --secondary-foreground: #f8fafc;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: #f4c95d;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #fff;
  --border: rgba(248, 250, 252, 0.1);
  --input: #334155;
  --input-background: #1e293b;
  --ring: #7bc67b;
}

html {
  font-size: var(--font-size);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"],
[dir="rtl"] *,
.font-arabic {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

