/* Instituto Londucci — App do Paciente
   Estilos customizados (moldura, animações, overlays)
   Tailwind via CDN cuida do restante das utilitárias */

* { -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

/* Phone frame */
.phone {
  width: 375px;
  height: 750px;
  background: #000;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 30px 60px -15px rgba(2, 132, 199, 0.35), 0 0 0 1px rgba(255,255,255,0.1) inset;
  position: relative;
}
.screen {
  width: 100%;
  height: 100%;
  background: #F8FAFC;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 26px;
  background: #000;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 50;
}

/* Scrollable content */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.content::-webkit-scrollbar { width: 0; display: none; }

/* Tab views */
.tab-view { display: none; animation: fadeIn 0.35s ease; }
.tab-view.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom nav */
.nav-btn { transition: color 0.2s, transform 0.15s; }
.nav-btn.active { color: #0284C7; }
.nav-btn.active .nav-icon-wrap { background: #E0F2FE; transform: translateY(-2px); }
.nav-icon-wrap { transition: all 0.2s; }

/* Sheet / modal */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.overlay.open { display: flex; }
.sheet {
  background: #fff;
  width: 100%;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 8px 20px 24px;
  max-height: 88%;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet::-webkit-scrollbar { width: 0; }
.overlay.open .sheet { transform: translateY(0); }
.sheet-grab {
  width: 40px; height: 5px; background: #CBD5E1;
  border-radius: 999px; margin: 8px auto 16px;
}

/* Progress ring */
.ring-bg { stroke: #E2E8F0; }
.ring-fg { stroke: #0284C7; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }

/* Toast */
.toast {
  position: absolute;
  bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0F172A; color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: all 0.3s; z-index: 70;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.pulse-rec { animation: pulseRec 1.4s infinite; }
@keyframes pulseRec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

.day-chip { transition: all 0.2s; }
.fade-up { animation: fadeIn 0.4s ease; }
.slot-btn.selected { background: #0284C7; color: #fff; border-color: #0284C7; }