/* ========================================================
   RS LANGIT GOLDEN MEDIKA - KENDALI SUHU & KELEMBAPAN
   Medical Grade UI/UX Design System
   ======================================================== */

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

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --color-primary: #0f766e;
  --color-primary-dark: #0f172a;
  --color-safe: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono-val {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on, 'zero' on;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Status Glow & Animations */
.glow-safe {
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.2);
}
.glow-warning {
  box-shadow: 0 0 15px -3px rgba(245, 158, 11, 0.25);
}
.glow-danger {
  box-shadow: 0 0 18px -2px rgba(239, 68, 68, 0.35);
  animation: pulse-danger 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-danger {
  0%, 100% {
    border-color: rgba(239, 68, 68, 0.8);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.2);
  }
}

/* Glassmorphism effects */
.glass-header {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile Touch Ergonomics & Responsiveness */
.touch-btn {
  min-height: 42px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.touch-btn:active {
  transform: scale(0.97);
}

/* Mobile Safe Area Padding */
.safe-pb-bottom {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.safe-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Hide scrollbar while preserving scroll functionality */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Card hover and micro-interactions */
.room-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

@media (min-width: 640px) {
  .room-card:hover {
    transform: translateY(-2px);
  }
}

/* Focus styling for input cleanliness */
input:focus, select:focus, textarea:focus {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Mobile Sheet Pull Bar */
.sheet-pull-bar {
  width: 36px;
  height: 4px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  margin: 0 auto 12px auto;
}

/* ========================================================
   PRINT STYLESHEET UNTUK AUDIT AKREDITASI PARIPURNA (STARKES)
   ======================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }
  
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .page-break {
    page-break-before: always;
  }

  /* Hilangkan shadow & border mewah saat cetak */
  .glass-card, .shadow-sm, .shadow-md, .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th, td {
    border: 1px solid #94a3b8 !important;
    padding: 4px 6px !important;
    font-size: 8.5pt !important;
  }

  th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: bold !important;
  }
}

@media screen {
  .print-only {
    display: none !important;
  }
}

