@tailwind base; @tailwind components; @tailwind utilities; @layer base { :root { --background: 220 25% 3%; --foreground: 210 20% 98%; --card: 220 20% 8%; --card-foreground: 210 15% 95%; --popover: 220 20% 6%; --popover-foreground: 210 15% 95%; --primary: 160 70% 40%; --primary-foreground: 160 10% 98%; --primary-glow: 160 100% 55%; --secondary: 220 20% 14%; --secondary-foreground: 210 10% 90%; --muted: 220 15% 12%; --muted-foreground: 210 10% 55%; --accent: 200 100% 50%; --accent-foreground: 190 10% 98%; --destructive: 0 80% 50%; --destructive-foreground: 0 10% 98%; --success: 142 70% 40%; --success-foreground: 142 10% 98%; --warning: 38 90% 50%; --warning-foreground: 38 10% 10%; --info: 210 80% 50%; --info-foreground: 210 10% 98%; --border: 220 15% 15%; --input: 220 15% 12%; --ring: 160 60% 40%; --gradient-primary: linear-gradient(135deg, hsl(160 70% 40%), hsl(200 100% 50%), hsl(280 100% 55%)); --gradient-hero: radial-gradient(ellipse at top, hsl(220 20% 12%), hsl(220 25% 5%)); --gradient-card: linear-gradient(145deg, hsl(220 20% 10%), hsl(220 20% 6%)); --gradient-glass: linear-gradient(135deg, hsl(220 20% 12% / 0.8), hsl(220 20% 8% / 0.6)); --gradient-accent: linear-gradient(135deg, hsl(200 100% 50%), hsl(280 100% 55%)); --gradient-premium: linear-gradient(135deg, hsl(45 100% 60%), hsl(35 100% 65%)); --gradient-neon: linear-gradient(135deg, hsl(180 100% 55%), hsl(200 100% 55%)); --gradient-dark: linear-gradient(180deg, transparent, hsl(220 25% 5% / 0.9)); --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.3); --shadow-md: 0 4px 12px hsl(0 0% 0% / 0.4); --shadow-lg: 0 8px 24px hsl(0 0% 0% / 0.5); --shadow-xl: 0 16px 48px hsl(0 0% 0% / 0.6); --shadow-glow: 0 0 80px hsl(160 100% 55% / 0.4); --shadow-accent: 0 0 60px hsl(200 100% 50% / 0.5); --shadow-premium: 0 4px 20px hsl(45 100% 60% / 0.3); --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1); --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1); --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1); --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55); --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-2xl: 1.5rem; --sidebar-background: 220 20% 6%; --sidebar-foreground: 210 15% 80%; --sidebar-primary: 160 60% 35%; --sidebar-primary-foreground: 160 10% 98%; --sidebar-accent: 220 15% 12%; --sidebar-accent-foreground: 210 15% 90%; --sidebar-border: 220 15% 15%; --sidebar-ring: 160 60% 40%; } .light { --background: 0 0% 98%; --foreground: 220 20% 10%; --card: 0 0% 100%; --card-foreground: 220 15% 15%; --popover: 0 0% 100%; --popover-foreground: 220 15% 15%; --primary: 160 70% 40%; --primary-foreground: 0 0% 100%; --primary-glow: 160 70% 45%; --secondary: 220 15% 94%; --secondary-foreground: 220 15% 20%; --muted: 220 10% 92%; --muted-foreground: 220 10% 45%; --accent: 200 100% 50%; --accent-foreground: 0 0% 100%; --destructive: 0 80% 50%; --destructive-foreground: 0 0% 100%; --success: 142 70% 40%; --success-foreground: 0 0% 100%; --warning: 38 90% 50%; --warning-foreground: 38 20% 10%; --info: 210 80% 50%; --info-foreground: 0 0% 100%; --border: 220 15% 88%; --input: 220 15% 90%; --ring: 160 60% 40%; --gradient-hero: radial-gradient(ellipse at top, hsl(0 0% 100%), hsl(220 10% 96%)); --gradient-card: linear-gradient(145deg, hsl(0 0% 100%), hsl(220 10% 98%)); --gradient-glass: linear-gradient(135deg, hsl(0 0% 100% / 0.9), hsl(220 10% 96% / 0.8)); --shadow-sm: 0 1px 2px hsl(220 20% 10% / 0.05); --shadow-md: 0 4px 12px hsl(220 20% 10% / 0.08); --shadow-lg: 0 8px 24px hsl(220 20% 10% / 0.1); --shadow-xl: 0 16px 48px hsl(220 20% 10% / 0.12); --sidebar-background: 0 0% 100%; --sidebar-foreground: 220 15% 30%; --sidebar-primary: 160 70% 40%; --sidebar-primary-foreground: 0 0% 100%; --sidebar-accent: 220 10% 96%; --sidebar-accent-foreground: 220 15% 20%; --sidebar-border: 220 15% 90%; --sidebar-ring: 160 60% 40%; } } @layer base { * { @apply border-border; } html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { @apply bg-background text-foreground; background: var(--gradient-hero); min-height: 100vh; font-feature-settings: "rlig" 1, "calt" 1; position: relative; } body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 50%, hsl(160 70% 40% / 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, hsl(280 100% 55% / 0.1) 0%, transparent 50%); pointer-events: none; z-index: -1; } ::selection { background: hsl(var(--primary) / 0.3); color: hsl(var(--primary-foreground)); } } @layer components { .glass { background: var(--gradient-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid hsl(var(--border) / 0.5); } .glass-strong { background: hsl(var(--card) / 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid hsl(var(--border)); } .card-hover { @apply transition-all duration-300; background: var(--gradient-card); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-md); } .card-hover:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl), var(--shadow-glow), var(--shadow-accent); border-color: hsl(var(--primary) / 0.7); } .btn-primary { @apply relative overflow-hidden font-medium; background: var(--gradient-primary); box-shadow: var(--shadow-md), var(--shadow-glow); transition: var(--transition-base); border: 1px solid hsl(var(--primary) / 0.3); } .btn-primary::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, hsl(255 255% 255% / 0.2), transparent); transition: left 0.5s ease; } .btn-primary:hover::before { left: 100%; } .btn-primary:hover { box-shadow: var(--shadow-lg), var(--shadow-glow), var(--shadow-accent); transform: translateY(-3px); } .btn-primary:active { transform: translateY(0); } .btn-secondary { @apply font-medium; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); transition: var(--transition-base); } .btn-secondary:hover { background: hsl(var(--secondary) / 0.8); border-color: hsl(var(--primary) / 0.3); } .text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .text-gradient-accent { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .text-gradient-premium { background: var(--gradient-premium); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .pixelated { image-rendering: pixelated; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; } .glow-sm { box-shadow: 0 0 20px hsl(var(--primary-glow) / 0.4); } .glow-md { box-shadow: 0 0 40px hsl(var(--primary-glow) / 0.3); } .glow-lg { box-shadow: 0 0 80px hsl(var(--primary-glow) / 0.35); } .glow-neon { box-shadow: 0 0 20px hsl(200 100% 50% / 0.5), 0 0 40px hsl(280 100% 55% / 0.3); } .neon-border { border: 2px solid transparent; background-clip: padding-box; background-image: var(--gradient-primary); background-origin: border; box-shadow: inset 0 0 20px hsl(var(--primary) / 0.1); } .glow-accent { box-shadow: var(--shadow-accent); } .glow-premium { box-shadow: var(--shadow-premium); } .border-gradient { position: relative; } .border-gradient::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--gradient-primary); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; } .skeleton { background: linear-gradient( 90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75% ); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; } .focus-ring { @apply outline-none ring-2 ring-ring ring-offset-2 ring-offset-background; } .scrollbar-thin { scrollbar-width: thin; scrollbar-color: hsl(var(--muted-foreground) / 0.3) transparent; } .scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; } .scrollbar-thin::-webkit-scrollbar-track { background: transparent; } .scrollbar-thin::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); border-radius: 3px; } .scrollbar-thin::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.5); } /* إصلاح النصوص الطويلة التي تسبب تجاوز الشاشة في الجوال */ .break-all-words { word-break: break-all; overflow-wrap: break-word; hyphens: auto; } .force-full-width { max-width: 100vw; overflow-x: hidden; } .text-safe { word-break: break-word; overflow-wrap: break-word; word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; max-width: 100%; } .text-monospace-safe { word-break: break-all; overflow-wrap: break-word; font-family: 'Monaco', 'Courier New', monospace; max-width: 100%; display: block; } .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; } .table-responsive table { min-width: 100%; } .table-responsive td, .table-responsive th { word-break: break-word; overflow-wrap: break-word; max-width: 150px; } } @layer utilities { .animate-in { animation: animate-in 0.3s ease-out; } .animate-out { animation: animate-out 0.2s ease-in; } .slide-in-from-bottom-4 { --enter-translate-y: 1rem; } .fade-in { animation: fade-in 0.3s ease-out; } .zoom-in { animation: zoom-in 0.2s ease-out; } .duration-fast { animation-duration: 150ms; } .duration-normal { animation-duration: 250ms; } .duration-slow { animation-duration: 350ms; } } @keyframes animate-in { from { opacity: 0; transform: translateY(var(--enter-translate-y, 0)); } to { opacity: 1; transform: translateY(0); } } @keyframes animate-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(var(--exit-translate-y, 0)); } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes zoom-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } @keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } @keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px hsl(var(--primary-glow) / 0.4); } 50% { box-shadow: 0 0 40px hsl(var(--primary-glow) / 0.6); } } @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } @keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes bounce-subtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } } .animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; } .animate-float { animation: float 6s ease-in-out infinite; } .animate-shimmer { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); background-size: 200% 100%; animation: shimmer 2s infinite; } .animate-spin-slow { animation: spin-slow 8s linear infinite; } .animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; } .line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }