/* body {
  background: #ffffff;
  font-family: "Segoe UI", sans-serif;
  padding: 2rem;
} */
 /* Replace the universal rule with this */
body, button, input, select, textarea {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.card-record {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.header-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.header-section h3 {
  margin: 0;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.info-box {
  background: #f8fafc;
  padding: 1rem;
  border-left: 4px solid #0d6efd;
  border-radius: 10px;
}

.info-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #212529;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d6efd;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-style {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  list-style: none;
  margin-bottom: 1rem;
}

.list-style li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.list-style li:last-child {
  border-bottom: none;
}

.badge-status {
  background-color: #198754;
  color: #fff;
  font-weight: 500;
  padding: 0.4em 0.9em;
  border-radius: 20px;
  font-size: 0.9rem;
}

@media print {
  body {
    background: white;
  }
  .card-record {
    box-shadow: none;
    border: none;
  }
}

/* data tables */

table td, table th {
  vertical-align: middle;
}
.patient-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.badge-general {
  background-color: #fff3cd;
  color: #856404;
  font-weight: 500;
}
.badge-consulting {
  background-color: #e7f1ff;
  color: #0d6efd;
  font-weight: 500;
}
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* notification */
.notification-card {
  border-left: 5px solid #007bff;
  background: #ffffff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Ensure topbar dropdowns always appear above page content (all devices) */
.topbar {
  position: relative;
  z-index: 1100;
}

.topbar .dropdown-menu {
  z-index: 1200;
}

/* Bootstrap modal is z-index 1050 by default, which is BELOW our topbar (1100).
   This causes modal headers/close buttons to be hidden behind the navbar.
   Keep modals above the topbar + dropdowns. */
.modal {
  z-index: 1300;
}

.modal-backdrop {
  z-index: 1290;
}

.risk-card {
  border-left-color: #dc3545;
  background-color: #fff5f5;
}

.timestamp {
  font-size: 0.875rem;
  color: #6c757d;
}

.tab-content {
  margin-top: 1rem;
}
/* Hide sidebar on mobile by default */
@media (max-width: 768px) {
  .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 250px;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      z-index: 1040; /* above content but below topbar */
  }

  .sidebar.active {
      transform: translateX(0);
  }

  /* Overlay behind sidebar */
  .sidebar-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1039;
      opacity: 0;
      transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
      display: block;
      opacity: 1;
  }

  /* Ensure main content stays visible below topbar */
  .content-wrapper {
      position: relative;
      z-index: 1;
  }
}




