/* ========================================================
   SI BUNG PLEB - Modern Hospital Design System
   Dominasi: Teal, Hijau, Putih, Slate, Emerald
   Style: Hospital Dashboard + Light Glassmorphism + Clean UI
   ======================================================== */

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding-bottom: 70px; /* Space for mobile nav */
}

@media (min-width: 1024px) {
  .main-content {
    padding-bottom: 30px;
  }
}

/* Glassmorphism Cards */
.hospital-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hospital-card:hover {
  box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.07), 0 4px 6px -4px rgba(15, 118, 110, 0.05);
}

/* Sidebar Styling */
.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: #0f172a;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.625rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background-color: rgba(15, 118, 110, 0.2);
  color: #2dd4bf;
}

.nav-item.active {
  background: linear-gradient(90deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 10px -2px rgba(13, 148, 136, 0.4);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.2);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
  box-shadow: 0 4px 8px rgba(15, 118, 110, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* Forms */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Tables */
.hospital-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hospital-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.hospital-table th {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.hospital-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.hospital-table tbody tr:hover {
  background-color: #f0fdfa;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 600;
  border: 1px solid transparent;
}
