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

:root {
    --primary: #0d6e6e;
    --primary-foreground: #ffffff;
    --secondary: #e0f2f1;
    --secondary-foreground: #0d6e6e;
    --muted: #f0fafa;
    --muted-foreground: #5a7a7a;
    --destructive: #d4183d;
    --border: rgba(0, 0, 0, 0.1);
    --input-background: #f3f3f5;
    --radius: 0.625rem;
    --sidebar: #0a4a4a;
    --sidebar-foreground: #e0f2f1;
    --sidebar-primary: #14b8a6;
    --sidebar-accent: #0d5e5e;
}

* { font-family: 'Cairo', 'Noto Sans Arabic', system-ui, sans-serif; box-sizing: border-box; }
html, body { height: 100%; margin: 0; scroll-behavior: smooth; }
[x-cloak] { display: none !important; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }

/* ═══════════════════════════════════════════
   KEYFRAME ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -50px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-40px, 30px) scale(1.08); }
    66%       { transform: translate(20px, -30px) scale(0.92); }
}
@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(25px, 25px) scale(1.1); }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(13,110,110,0.4), 0 4px 15px rgba(0,0,0,0.2); }
    50%       { box-shadow: 0 0 30px rgba(20,184,166,0.6), 0 8px 25px rgba(0,0,0,0.3); }
}
@keyframes shimmerSlide {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
@keyframes rippleExpand {
    0%   { transform: scale(0); opacity: 0.4; }
    100% { transform: scale(4); opacity: 0; }
}
@keyframes borderSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
@keyframes typingCursor {
    0%, 100% { border-right-color: #5eead4; }
    50%       { border-right-color: transparent; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes navbarScrolled {
    from { background: rgba(255,255,255,0.8); }
    to   { background: rgba(255,255,255,0.98); }
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50%       { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════
   UTILITY ANIMATION CLASSES
═══════════════════════════════════════════ */
.animate-fade-in-up  { animation: fadeInUp 0.45s ease-out forwards; opacity: 0; }
.animate-fade-in     { animation: fadeIn 0.35s ease-out forwards; opacity: 0; }
.animate-fade-in-left{ animation: fadeInLeft 0.45s ease-out forwards; opacity: 0; }
.animate-scale-in    { animation: scaleIn 0.4s ease-out forwards; opacity: 0; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.12s; }
.stagger-3 { animation-delay: 0.20s; }
.stagger-4 { animation-delay: 0.28s; }
.stagger-5 { animation-delay: 0.36s; }
.stagger-6 { animation-delay: 0.44s; }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal        { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible{ opacity: 1; transform: translateY(0); }
.reveal-left   { opacity: 0; transform: translateX(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-scale  { opacity: 0; transform: scale(0.93); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ═══════════════════════════════════════════
   ANIMATED HERO GRADIENT
═══════════════════════════════════════════ */
.hero-animated-bg {
    background: linear-gradient(-45deg, #0a3d3d, #0f766e, #134e4a, #065f46, #0d6e6e, #14532d);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* ═══════════════════════════════════════════
   FLOATING BLOBS
═══════════════════════════════════════════ */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.blob-1 { width: 400px; height: 400px; background: rgba(20,184,166,0.2); top: -100px; right: -100px; animation: blobFloat1 12s ease-in-out infinite; }
.blob-2 { width: 350px; height: 350px; background: rgba(6,95,70,0.25); bottom: -80px; left: -80px; animation: blobFloat2 15s ease-in-out infinite; }
.blob-3 { width: 250px; height: 250px; background: rgba(94,234,212,0.15); top: 50%; right: 20%; animation: blobFloat3 10s ease-in-out infinite; }
.blob-4 { width: 200px; height: 200px; background: rgba(16,185,129,0.15); top: 30%; left: 15%; animation: blobFloat1 18s ease-in-out infinite reverse; }
.blob-5 { width: 300px; height: 300px; background: rgba(13,110,110,0.2); bottom: 20%; right: 10%; animation: blobFloat2 20s ease-in-out infinite reverse; }

/* ═══════════════════════════════════════════
   GLASSMORPHISM
═══════════════════════════════════════════ */
.glass {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
}
.glass-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════
   GRADIENT TEXT
═══════════════════════════════════════════ */
.gradient-text {
    background: linear-gradient(135deg, #5eead4, #a7f3d0, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-dark {
    background: linear-gradient(135deg, #0d6e6e, #14b8a6, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════
   GLOWING BUTTON
═══════════════════════════════════════════ */
.btn-glow {
    position: relative;
    overflow: hidden;
    animation: glowPulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease;
}
.btn-glow:hover { transform: translateY(-2px) scale(1.02); }
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(100%);
    animation: shimmerSlide 2.5s infinite;
}

/* ═══════════════════════════════════════════
   RIPPLE EFFECT
═══════════════════════════════════════════ */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    pointer-events: none;
    animation: rippleExpand 0.6s ease-out forwards;
}

/* ═══════════════════════════════════════════
   CARD HOVER MICRO-LIFT
═══════════════════════════════════════════ */
.card-hover { transition: box-shadow 0.25s ease, transform 0.25s ease; }
.card-hover:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.11); transform: translateY(-2px); }

/* Feature card hover */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}
.feature-card:hover {
    border-color: rgba(13,110,110,0.3);
    box-shadow: 0 8px 30px rgba(13,110,110,0.12);
    transform: translateY(-3px);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #0d6e6e, #14b8a6);
    transform: scale(1.1) rotate(-5deg);
}
.feature-card:hover .feature-icon svg { color: white !important; }
.feature-icon { transition: all 0.3s ease; }

/* ═══════════════════════════════════════════
   ANIMATED STEP NUMBERS
═══════════════════════════════════════════ */
.step-number {
    position: relative;
    transition: all 0.3s ease;
}
.step-number::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #14b8a6, #0d6e6e, #059669);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.step-card:hover .step-number { color: white; }
.step-card:hover .step-number::after { opacity: 1; }
.step-card { transition: all 0.3s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13,110,110,0.15); }

/* ═══════════════════════════════════════════
   PRICING CARDS
═══════════════════════════════════════════ */
.pricing-featured {
    position: relative;
    overflow: hidden;
}
.pricing-featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #14b8a6, #0d6e6e, #059669, #14b8a6);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
}

/* ═══════════════════════════════════════════
   FLOATING PARTICLES (pure CSS dots)
═══════════════════════════════════════════ */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
    animation: sparkle ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   NAVBAR SCROLL STATE
═══════════════════════════════════════════ */
.navbar-scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    backdrop-filter: blur(20px);
}

/* ═══════════════════════════════════════════
   TYPEWRITER CURSOR
═══════════════════════════════════════════ */
.typewriter-cursor {
    border-right: 3px solid #5eead4;
    padding-right: 2px;
    animation: typingCursor 0.8s step-end infinite;
}

/* ═══════════════════════════════════════════
   STATUS BADGE DOTS
═══════════════════════════════════════════ */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.status-dot   { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.status-open      { background: #eff6ff; color: #1d4ed8; }
.status-open      .status-dot { background: #3b82f6; }
.status-pending   { background: #fffbeb; color: #92400e; }
.status-pending   .status-dot { background: #f59e0b; }
.status-confirmed { background: #f0fdfa; color: #0d6e6e; }
.status-confirmed .status-dot { background: #0d6e6e; }
.status-completed { background: #f0fdf4; color: #166534; }
.status-completed .status-dot { background: #22c55e; }
.status-rated     { background: #faf5ff; color: #6b21a8; }
.status-rated     .status-dot { background: #a855f7; }
.status-cancelled { background: #fef2f2; color: #991b1b; }
.status-cancelled .status-dot { background: #ef4444; }

/* ═══════════════════════════════════════════
   DASHBOARD COUNTER ANIMATION
═══════════════════════════════════════════ */
.counter-value { animation: countUp 0.5s ease-out; }

/* ═══════════════════════════════════════════
   SIDEBAR ACTIVE NAV GLOW
═══════════════════════════════════════════ */
.nav-active-glow {
    box-shadow: 0 0 12px rgba(20,184,166,0.4);
}

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
nav[aria-label="Pagination"] { display: flex; gap: .25rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
nav[aria-label="Pagination"] span, nav[aria-label="Pagination"] a { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; border: 1px solid transparent; transition: all .15s; }
nav[aria-label="Pagination"] a { color: #4b5563; border-color: #e5e7eb; background: white; text-decoration: none; }
nav[aria-label="Pagination"] a:hover { background: #f0fafa; border-color: #0d6e6e; color: #0d6e6e; }
nav[aria-label="Pagination"] span[aria-current="page"] { background: #0d6e6e; color: white; }

/* ═══════════════════════════════════════════
   SECTION DIVIDER WAVE
═══════════════════════════════════════════ */
.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.section-wave svg { display: block; width: 100%; height: 60px; }

/* ═══════════════════════════════════════════
   SHIFT CREATE PAGE — NEW DESIGN
═══════════════════════════════════════════ */
.specialty-chip {
    background: white;
    border: 1.5px solid rgba(0,0,0,0.1);
    color: #4b5563;
    transition: all 0.15s ease;
    cursor: pointer;
}
.specialty-chip:hover {
    border-color: rgba(13,110,110,0.35);
    background: rgba(13,110,110,0.04);
    color: #0d6e6e;
}
.specialty-chip.selected {
    background: #0d6e6e;
    color: white;
    border-color: #0d6e6e;
    box-shadow: 0 0 0 3px rgba(13,110,110,0.18), 0 4px 12px rgba(13,110,110,0.28);
}
.form-section {
    background: white;
    border-radius: 1rem;
    border: 1.5px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.form-section:focus-within {
    box-shadow: 0 4px 24px rgba(13,110,110,0.09);
    border-color: rgba(13,110,110,0.22);
}
.section-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d6e6e, #14b8a6);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.commission-panel {
    background: linear-gradient(135deg, #f0fdfa, #e6faf8);
    border: 1px solid rgba(13,110,110,0.15);
    border-radius: 0.75rem;
}
.preview-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerSlide 1.6s infinite;
    display: inline-block;
    border-radius: 0.5rem;
}
