/* ==========================================================================
   HCAHPS HSC — Design System & Core Styles
   Hospital São Carlos — Sistema de Experiência do Paciente
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Palettes */
  --primary-900: #06283d;
  --primary-800: #0d4a70;
  --primary-700: #0f5f8f;
  --primary-600: #0284c7;
  --primary-500: #0ea5e9;
  --primary-100: #e0f2fe;
  --primary-50:  #f0f9ff;

  --accent-teal: #00a896;
  --accent-teal-dark: #028090;
  --accent-teal-light: #e6f7f5;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  /* Neutral tones */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-focus: #0ea5e9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-teal-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 74, 112, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 100%);
  box-shadow: 0 6px 16px rgba(13, 74, 112, 0.35);
  transform: translateY(-1px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #008f80 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25);
}

.btn-teal:hover {
  background: linear-gradient(135deg, #008f80 0%, #007a6d 100%);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--text-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.badge-pill {
  border-radius: 9999px;
}

/* Form inputs */
.input-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.input-control:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-emerald { color: var(--accent-emerald); }
.text-teal { color: var(--accent-teal); }
.text-rose { color: var(--accent-rose); }
.text-primary { color: var(--primary-700); }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Micro-animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

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