/* ===================================================
   OsteoCare - Wellness & Clinical Theme Styling
   =================================================== */

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

:root {
  --color-sage-50: #F4F7F5;
  --color-sage-100: #E6EDE8;
  --color-sage-200: #D0DDD3;
  --color-sage-500: #5B8266;
  --color-sage-600: #486952;
  --color-sage-700: #385240;
  --color-terracotta: #D97757;
  --color-teal: #2E798A;
  --color-sand: #FAF8F5;
  --color-sand-dark: #EFEAE1;
  --color-slate-dark: #1E293B;
  --color-slate-muted: #64748B;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #F8FAF9;
  color: #1E293B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F3;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Modal & Drawer Layering */
.modal-backdrop {
  z-index: 60 !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
#pin-details-modal {
  z-index: 70 !important;
  -webkit-overflow-scrolling: touch;
}
#image-lightbox-modal {
  z-index: 75 !important;
  -webkit-overflow-scrolling: touch;
}
#toast-container {
  z-index: 80 !important;
}
#client-drawer {
  z-index: 50 !important;
}

/* Slide-over Drawer Transitions */
.drawer-backdrop {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-panel {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Anatomical Body Chart Styling */
.body-silhouette-path {
  fill: #E9EFEA;
  stroke: #A8C0B0;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: all 0.2s ease;
  cursor: crosshair;
}
.body-silhouette-path:hover {
  fill: #DFEAE1;
  stroke: #5B8266;
}

.body-zone-line {
  stroke: #CBDAD0;
  stroke-dasharray: 3 3;
  stroke-width: 1;
}

.anatomical-pin {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  transform-origin: center;
}
.anatomical-pin:hover {
  transform: scale(1.35);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

@keyframes pinPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.pin-pulse-ring {
  animation: pinPulse 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
}

/* Quick Tag Chips */
.tag-chip {
  transition: all 0.15s ease;
}
.tag-chip:hover {
  transform: translateY(-1px);
}

/* Schedule Buffer Line */
.schedule-buffer-block {
  background: repeating-linear-gradient(
    45deg,
    rgba(226, 232, 240, 0.4),
    rgba(226, 232, 240, 0.4) 8px,
    rgba(241, 245, 249, 0.4) 8px,
    rgba(241, 245, 249, 0.4) 16px
  );
  border-left: 2px dashed #94A3B8;
}

/* Print Styles for Clinical Records */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
  }
  .no-print, nav, header, aside, .btn-no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .clinical-note-print {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
}
