/* Custom Styling & Print Rules for IOA Clinic Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #38bdf8;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;
  --indigo-accent: #6366f1;
  --bg-main: #0b1120;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0b1120;
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile Fixed Header Overlay (Sempre no topo e sobreposto) */
.mobile-fixed-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(11, 17, 32, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
}

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease-in-out;
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.15);
}

/* Highlighted Primary Card */
.glass-card-highlight {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.25);
  position: relative;
  overflow: hidden;
}

.glass-card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #06b6d4, #10b981);
}

/* Custom Gradients */
.gradient-text-blue {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Funnel Step Styles */
.funnel-step {
  position: relative;
  transition: transform 0.2s ease;
}

.funnel-step:hover {
  transform: scale(1.02);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b1120;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Pulse animation for key metrics */
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

/* Print & PDF Optimization */
@media print {
  body {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt;
  }

  .no-print {
    display: none !important;
  }

  .glass-card, .glass-card-highlight {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    break-inside: avoid;
  }

  .text-white, .text-slate-100, .text-slate-200 {
    color: #0f172a !important;
  }

  .text-slate-300, .text-slate-400 {
    color: #475569 !important;
  }

  .gradient-text-blue, .gradient-text-emerald, .gradient-text-gold {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    color: #0369a1 !important;
  }

  .bg-slate-900\/80, .bg-slate-900, .bg-slate-950 {
    background-color: #f8fafc !important;
  }
}
