@import "tailwindcss";

@layer base {
  :root {
    --font-cairo: 'Cairo', system-ui, -apple-system, sans-serif;
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --secondary: #0F172A;
    --accent: #F59E0B;
    --accent-glow: rgba(245, 158, 11, 0.25);
  }

  html {
    font-family: var(--font-cairo);
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    font-family: var(--font-cairo);
    background-color: #F8FAFC;
    color: #0F172A;
    overflow-x: hidden;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #0D9488;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0F766E;
}

/* Pulse Animations */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.92; }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2.5s infinite ease-in-out;
}

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

.shimmer-badge {
  background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 50%, #F59E0B 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Sticky Action Bar Spacing */
@media (max-width: 767px) {
  body {
    padding-bottom: 76px; /* Reserve space for fixed bottom action bar */
  }
}

/* Focus and Accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #0D9488;
  outline-offset: 2px;
}

/* Prevent text overflow in badges */
.badge-text {
  white-space: nowrap;
}

/* RTL Helpers */
[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}
