/* Shareek Design System & Custom Animations */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #003F87;
  --primary-hover: #002d62;
  --primary-container: #0056B3;
  --on-primary: #ffffff;
  --background: #F6FAFF;
  --surface: #ffffff;
  --surface-secondary: #F8F9FA;
  --surface-border: #E9ECEF;
  --text-main: #141D23;
  --text-muted: #6C757D;
  --success: #28A745;
  --success-bg: #D4EDDA;
  --danger: #DC3545;
  --danger-bg: #F8D7DA;
  --warning: #FFC107;
  --warning-bg: #FFF3CD;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 63, 135, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 63, 135, 0.1);
  --shadow-lg: 0 16px 32px rgba(0, 63, 135, 0.15);
  --shadow-3d: 0 20px 40px rgba(0, 63, 135, 0.18), 0 0 0 1px rgba(0, 63, 135, 0.05);
}

* {
  box-sizing: border-box;
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-nav {
  background: rgba(246, 250, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 63, 135, 0.08);
}

/* 3D Parallax & Tilt Effect Cards */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) scale(1.01);
  box-shadow: var(--shadow-3d);
}

.card-3d .card-content-3d {
  transform: translateZ(20px);
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite 2.5s;
}

/* Pulse animation */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

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

/* Hide scrollbar utility */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modal styling */
.modal-backdrop {
  background: rgba(20, 29, 35, 0.6);
  backdrop-filter: blur(6px);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Custom Badges */
.badge-pending {
  background-color: var(--warning-bg);
  color: #856404;
  border: 1px solid #FFEBAA;
}

.badge-approved {
  background-color: var(--success-bg);
  color: #155724;
  border: 1px solid #C3E6CB;
}

.badge-rejected {
  background-color: var(--danger-bg);
  color: #721C24;
  border: 1px solid #F5C6CB;
}
