File size: 13,206 Bytes
6711fd5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 | @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;
} |