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

:root {
  --primary: #e37235;
  --primary-hover: #c9622a;
  --primary-light: #fff3ec;
  --accent: #10b981;
  --bg-gradient: linear-gradient(135deg, #fffaf6 0%, #fef2ee 100%);
  --card-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(254, 215, 170, 0.5);
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --shadow-sm: 0 4px 6px -1px rgba(227, 114, 53, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(227, 114, 53, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(227, 114, 53, 0.2);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

body, html {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: var(--bg-gradient);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Cards & Containers */
.bg-white, .card, [class*="bg-white"] {
  background: var(--card-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Primary Buttons with Hoozy Orange */
button, .btn, [class*="bg-primary"], [class*="bg-orange"], [class*="bg-amber"] {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

button:hover, .btn:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Inputs & Form Controls */
input, select, textarea {
  border-radius: var(--radius-sm) !important;
  border: 1px solid #fed7aa !important;
  padding: 0.75rem 1rem !important;
  direction: rtl !important;
  text-align: right !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(227, 114, 53, 0.15) !important;
  outline: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #fffaf6;
}
::-webkit-scrollbar-thumb {
  background: #fdba74;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Smooth Fade Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

#app > * {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
