:root {
  --primary: #0f4c81;
  --primary-hover: #093760;
  --primary-light: #e8f2fc;
  --primary-dark: #072a4a;
  --secondary: #0d9488;
  --secondary-hover: #0f766e;
  --accent: #3b82f6;
  --accent-light: #eff6ff;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #475569;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #3b82f6;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
  background: linear-gradient(135deg, #0d3866 0%, #08284c 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: white;
  min-width: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0d3866;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 0.72rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-item {
  text-decoration: none;
  color: #e2e8f0;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.24);
  font-weight: 600;
}

/* LAYOUT WRAPPER */
.main-wrapper {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
  flex: 1;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f2744;
  letter-spacing: -0.02em;
}

.page-title p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

/* STATS CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.stat-info p {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f2744;
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-amber { background: #fffbeb; color: #d97706; }

/* CARDS */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.card-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfcfe;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2744;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.25rem 1.4rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 1px 3px rgba(15, 76, 129, 0.25);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  box-shadow: 0 4px 8px rgba(15, 76, 129, 0.35);
}

.btn-success {
  background-color: var(--success);
  color: white;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  background-color: #059669;
  color: white;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.btn-outline-primary {
  border-color: #93c5fd;
  color: var(--primary);
  background: white;
}
.btn-outline-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.btn-outline-success {
  border-color: #a7f3d0;
  color: #059669;
  background: white;
}
.btn-outline-success:hover {
  background-color: var(--success-bg);
  border-color: #10b981;
}

.btn-outline-danger {
  border-color: #fecaca;
  color: var(--danger);
  background: white;
}
.btn-outline-danger:hover {
  background-color: var(--danger-bg);
  border-color: var(--danger);
}

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 5px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* BADGES & CHIPS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-inap {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-jalan {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #a7f3d0;
}

.badge-subtle {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-rm {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* BADGE JAMINAN - JELAS & ELEGAN (BUKAN "Jam:") */
.badge-jaminan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-jaminan i {
  color: #15803d;
  font-size: 0.75rem;
}

.badge-inv {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* TIME PILL DISPLAY */
.time-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #334155;
}

.time-row .time-icon {
  width: 16px;
  text-align: center;
  font-size: 0.75rem;
}

.time-row .time-label {
  color: #64748b;
  font-size: 0.725rem;
  min-width: 44px;
}

.time-row .time-val {
  font-weight: 600;
}

.time-row .time-clock {
  font-size: 0.725rem;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* DESKTOP TABLE STYLING - FIT 100% */
.desktop-table-container {
  display: block;
  width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 0.9rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: #1e293b;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

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

/* PATIENT INFO CELL */
.patient-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.patient-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.patient-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.925rem;
}

.patient-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #64748b;
}

.patient-address {
  font-size: 0.75rem;
  color: #64748b;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DOWNLOAD BUTTON GROUP (COMPACT) */
.download-action-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.btn-zip-primary {
  background: #059669;
  color: white;
  border: 1px solid #047857;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}
.btn-zip-primary:hover {
  background: #047857;
  color: white;
}

/* DROPDOWN MENU */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0;
  z-index: 50;
  display: none;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

/* MOBILE CARDS LIST (SMARTPHONE VIEW) */
.mobile-claims-list {
  display: none;
}

.mobile-claim-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.mobile-claim-card:hover {
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.mcc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.mcc-patient-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.mcc-total {
  text-align: right;
  white-space: nowrap;
}

.mcc-total .label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.mcc-total .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
}

.mcc-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.mcc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mcc-row .mcc-k {
  color: #64748b;
  font-size: 0.8rem;
}

.mcc-row .mcc-v {
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

.mcc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.mcc-actions .btn {
  width: 100%;
  padding: 0.55rem 0.5rem;
  font-size: 0.8rem;
  justify-content: center;
}

/* FORMS */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.form-group {
  margin-bottom: 1rem;
}

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

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* UPLOAD DROPZONE */
.upload-dropzone {
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}

.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 2.8rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.upload-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2744;
  margin-bottom: 0.25rem;
}

.upload-subtitle {
  color: var(--text-muted);
  font-size: 0.825rem;
}

/* ALERTS */
.alert {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #fecaca;
}

.alert-info {
  background-color: var(--accent-light);
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* FOOTER */
.footer {
  margin-top: auto;
  padding: 1.25rem;
  background: white;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* PDF PREVIEW MODAL & TABS */
.pdf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pdf-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.pdf-modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1100px;
  height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.pdf-modal-header {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pdf-modal-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 0;
}

.pdf-tabs {
  display: flex;
  gap: 0.3rem;
  background: #e2e8f0;
  padding: 3px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.pdf-tab-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.pdf-tab-btn:hover {
  color: var(--text-main);
}

.pdf-tab-btn.active {
  background: white;
  color: #0369a1;
  box-shadow: var(--shadow-xs);
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-modal-body {
  flex: 1;
  background: #334155;
  position: relative;
  overflow: hidden;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: white;
}

.pdf-modal-footer {
  padding: 0.65rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ACTION BUTTONS GROUP (LURUS HORIZONTAL & KOMPAK) */
.action-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  vertical-align: middle;
}

.action-btn-group .btn-action {
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.action-btn-group .btn-action:hover {
  transform: translateY(-1px);
}

.action-btn-group .btn-del {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  cursor: pointer;
}

.action-btn-group .btn-del:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
}

/* MODERN PATIENT INFO TILES (DETAIL PAGE) */
.patient-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.info-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  transition: all 0.2s ease;
}

.info-tile:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.info-tile-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-tile-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.35rem;
}

/* RESPONSIVE BREAKPOINTS (SMARTPHONE & TABLET) */
@media (max-width: 992px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 0 0.75rem;
    margin: 0.85rem auto;
  }

  .navbar {
    padding: 0.65rem 0.85rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .brand {
    justify-content: flex-start;
  }

  .nav-links {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.5rem;
    gap: 0.35rem;
  }

  .nav-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem 1.15rem;
  }

  .page-title h2 {
    font-size: 1.3rem;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border);
  }

  .table th, .table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  .patient-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .card-header {
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .card-header .form-control {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .brand-text h1 {
    font-size: 0.95rem;
  }
  
  .brand-text span {
    font-size: 0.65rem;
  }

  .btn {
    font-size: 0.825rem;
  }
}
