/**
 * ธีมโรงพยาบาล — น้ำเงินนาวี โทนอินเตอร์
 * ใช้ร่วมกับ Bootstrap 5 (โหลด IBM Plex Sans Thai จาก blade)
 */
:root {
  /* น้ำเงินนาวี — ปรับให้สว่างขึ้น ไม่จมดำ (ยังอ่านขาวบนแถบได้) */
  --hb-navy-950: #152a3d;
  --hb-navy-900: #1a3450;
  --hb-navy-800: #1f3f5e;
  --hb-navy-700: #244a6c;
  --hb-navy-600: #2c5a7e;
  --hb-slate-100: #f1f5f9;
  --hb-slate-200: #e2e8f0;
  --hb-slate-400: #94a3b8;
  --hb-slate-600: #475569;
  --hb-slate-800: #1e293b;

  --primary-color: #1e3f5e;
  --primary-dark: #152a3d;
  --primary-light: #4a7aad;
  --secondary-color: #e2e8f0;
  --accent-color: #f0f4f9;
  --accent-surface: #f8fafc;

  --success-color: #0f766e;
  --success-bright: #14b8a6;
  --warning-color: #c4a03a;
  --danger-color: #c23d3d;
  --info-color: #0e7490;

  --chart-1: #1e4a6e;
  --chart-2: #0f766e;
  --chart-3: #e8eef3;
  --chart-stroke-1: #3d6a94;
  --chart-stroke-2: #2dd4bf;

  --title-bg-1: rgba(26, 58, 92, 0.1);
  --title-bg-2: rgba(15, 118, 110, 0.1);

  --hb-radius: 12px;
  --hb-radius-sm: 10px;
  --hb-shadow: 0 4px 20px rgba(30, 63, 94, 0.07);
  --hb-shadow-lg: 0 12px 36px rgba(30, 63, 94, 0.1);
  --hb-border: 1px solid var(--hb-slate-200);

  --bs-primary: #1e3f5e;
  --bs-primary-rgb: 30, 63, 94;
}

body {
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  background: linear-gradient(180deg, #fafbfc 0%, var(--accent-surface) 30%, #eef2f7 100%);
  color: var(--hb-slate-800);
  min-height: 100vh;
}

/* ---------- Admin app layout (extends layouts.app) ---------- */
.app-sidebar,
.hb-sidebar {
  background: linear-gradient(180deg, #2563a0 0%, #1a4a6e 45%, #163d56 100%);
  min-height: 100vh;
  box-shadow: 4px 0 28px rgba(22, 61, 86, 0.18);
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.app-sidebar::before,
.hb-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #0ea5e9, #2dd4bf);
  opacity: 0.9;
  z-index: 1;
}

.app-sidebar-inner,
.hb-sidebar-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 0.5rem;
}

.hb-sidebar-brand,
.app-sidebar .position-sticky > .text-center {
  padding: 1.35rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
}

.app-sidebar h4.text-white,
.hb-sidebar .system-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #fff !important;
}

.hb-sidebar .system-name {
  color: #fff;
}

.hb-sidebar .system-subtitle,
.app-sidebar .text-white-50,
.hb-sidebar small {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.82rem;
  font-weight: 400;
}

.hb-icon-ring {
  width: clamp(40px, 18%, 56px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.hb-logo-img {
  width: clamp(28px, 72%, 40px) !important;
  height: clamp(28px, 72%, 40px) !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain;
  display: block;
}

.app-sidebar .nav.flex-column,
.hb-nav-stack {
  flex: 1;
  padding: 0.25rem 0.65rem 1rem;
}

.app-sidebar .nav-link,
.hb-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  padding: 0.72rem 1rem;
  border-radius: var(--hb-radius-sm);
  margin: 0.2rem 0;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-sidebar .nav-link i,
.hb-sidebar .nav-link i {
  width: 1.25rem;
  text-align: center;
  opacity: 0.9;
  font-size: 0.95rem;
}

.app-sidebar .nav-link:hover,
.hb-sidebar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.app-sidebar .nav-link.active,
.hb-sidebar .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(125, 211, 252, 0.12) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.app-sidebar-footer,
.hb-sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.5;
}

.main-content {
  background: transparent;
  min-height: 100vh;
  padding-bottom: 2rem !important;
}

/* ---------- Bootstrap overrides ---------- */
.navbar {
  background: linear-gradient(135deg, #2c5a7e 0%, #1a4a6e 100%) !important;
  box-shadow: 0 2px 14px rgba(22, 61, 86, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #2c5a7e 0%, #1e4a6e 100%);
  border: none;
  border-radius: var(--hb-radius-sm);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(30, 63, 94, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e4a6e 0%, #163d56 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 63, 94, 0.25);
}

.btn-success {
  background: linear-gradient(135deg, #0f766e 0%, #0d5c56 100%);
  border: none;
}

.card {
  border: var(--hb-border);
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow);
  background: #fff;
}

.card:hover {
  box-shadow: var(--hb-shadow-lg);
}

.card-header {
  background: linear-gradient(135deg, #2c5a7e 0%, #1a4a6e 100%);
  color: #fff;
  border: none;
  border-radius: var(--hb-radius) var(--hb-radius) 0 0 !important;
  font-weight: 600;
}

.stats-card {
  background: linear-gradient(140deg, #2c5a7e 0%, #1a3f5a 100%);
  color: #fff;
  border-radius: var(--hb-radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--hb-shadow);
}

.table thead th {
  background: linear-gradient(180deg, #2c5a7e 0%, #1e4a6e 100%);
  color: #fff;
  border: none;
  font-weight: 600;
}

.page-header {
  background: #fff;
  border-radius: var(--hb-radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--hb-shadow);
  border: var(--hb-border);
}

.page-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(26, 58, 92, 0.18);
}

.text-primary {
  color: var(--primary-color) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}
.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.pagination .page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.pagination .page-link {
  color: var(--primary-color);
}

/* ---------- แท็บ / subnav ---------- */
.nav-tabs {
  border-bottom: 2px solid var(--hb-slate-200);
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-tabs .nav-link {
  color: var(--hb-slate-600);
  font-weight: 500;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: var(--hb-radius-sm) var(--hb-radius-sm) 0 0;
  padding: 0.65rem 1.1rem;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background: rgba(26, 58, 92, 0.05);
  border-color: transparent;
}
.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background: #fff;
  font-weight: 600;
  border-bottom-color: var(--primary-color);
}
.nav-pills .nav-link {
  border-radius: var(--hb-radius-sm);
  color: var(--hb-slate-600);
  font-weight: 500;
}
.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #2c5a7e 0%, #1a4a6e 100%);
}

/* ---------- Public + dashboard กราฟ ---------- */
.main-container {
  display: flex;
  min-height: 100vh;
}

/* public ใช้ fixed sidebar */
.hb-sidebar.public-fixed {
  width: 280px;
  min-width: 280px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.main-container > .main-content {
  margin-left: 280px;
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
}

.hb-page-header {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow);
  margin-bottom: 1.25rem;
  border: var(--hb-border);
}

.chart-section {
  background: #fff;
  border-radius: var(--hb-radius);
  padding: 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--hb-shadow);
  border: var(--hb-border);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-title {
  font-weight: 600;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: var(--hb-radius-sm);
  font-size: 1.05rem;
}

.chart-title.hb-title-primary {
  background: var(--title-bg-1);
  color: var(--primary-color);
  border: 1px solid rgba(26, 58, 92, 0.12);
}

.chart-title.hb-title-secondary {
  background: var(--title-bg-2);
  color: var(--success-color);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

/* backward compat ชื่อเดิม */
.chart-title.purple {
  background: var(--title-bg-1);
  color: var(--primary-color);
  border: 1px solid rgba(26, 58, 92, 0.12);
}
.chart-title.green {
  background: var(--title-bg-2);
  color: var(--success-color);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.chart-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.hb-select {
  min-width: 180px;
  border-radius: var(--hb-radius-sm);
  border: 1px solid var(--hb-slate-200);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.export-btn,
.hb-btn-export {
  background: linear-gradient(135deg, #0f766e 0%, #0d5c56 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--hb-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.export-btn:hover,
.hb-btn-export:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
}

.chart-container,
.chart-container canvas {
  position: relative;
}

.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--hb-slate-600);
}
.legend-color {
  width: 20px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---------- Forms public ---------- */
.form-container {
  background: #fff;
  border-radius: 0 0 var(--hb-radius) var(--hb-radius);
  box-shadow: var(--hb-shadow);
  overflow: hidden;
  border: var(--hb-border);
  border-top: none;
}

.form-header {
  background: linear-gradient(135deg, #3a6d9e 0%, #1e4a6e 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary-custom {
  background: linear-gradient(135deg, #3a6d9e 0%, #1a4a6e 100%);
  color: #fff;
  border: none;
  border-radius: var(--hb-radius-sm);
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(30, 63, 94, 0.2);
}
.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 63, 94, 0.28);
}

.device-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.device-card:hover {
  border-color: var(--primary-light) !important;
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.1);
}
.device-card.selected {
  border-color: var(--primary-color) !important;
  background: rgba(26, 58, 92, 0.05) !important;
}
.section-header {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.error-message {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.hospital-logo {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: #93c5fd;
  opacity: 0.95;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hospital-logo-img {
  width: clamp(36px, 14%, 56px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  display: inline-block;
}
.btn-secondary-custom {
  background: #64748b;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary-custom:hover {
  background: #475569;
  color: #fff;
  transform: translateY(-1px);
}
.form-body {
  padding: 2rem;
}
.form-label {
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* ---------- Login page (พื้นหลังสว่าง ไม่ดำทึบ) ---------- */
.login-page-bg {
  background: linear-gradient(165deg, #d9e4f0 0%, #e8f0f7 30%, #f2f6fa 60%, #f7fafc 100%) !important;
  min-height: 100vh;
}

.login-page .hb-login-sidebar.hb-sidebar {
  background: linear-gradient(180deg, #2e6aa6 0%, #2563a0 40%, #1a4a6e 100%) !important;
  box-shadow: 4px 0 24px rgba(37, 99, 160, 0.14) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.login-page .main-container > .main-content {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 16px 48px rgba(30, 63, 94, 0.12) !important;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.login-header {
  background: linear-gradient(135deg, #3a6d9e 0%, #1e4a6e 55%, #1a3f5a 100%) !important;
  color: #fff;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.login-header p {
  margin: 0.4rem 0 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.login-page .hospital-logo {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: #a5d8ff;
  display: block;
}
.login-page .hb-icon-ring .hb-logo-img {
  width: clamp(26px, 70%, 36px) !important;
  height: clamp(26px, 70%, 36px) !important;
  max-width: 36px !important;
  max-height: 36px !important;
}
.login-page .hospital-logo-img {
  width: clamp(34px, 12%, 48px) !important;
  min-width: 34px !important;
  max-width: 48px !important;
  height: auto !important;
}

.hb-login-body {
  background: #fff;
  padding: 1.75rem 1.75rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.hb-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hb-login-form .form-label {
  display: block;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.hb-login-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.hb-field .input-group {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hb-field .input-group:focus-within {
  border-color: #3d6a94;
  box-shadow: 0 0 0 3px rgba(30, 58, 92, 0.12);
}

.hb-field .input-group:has(.form-control.is-invalid) {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.login-page .input-group-text {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border: none !important;
  padding: 0.7rem 0.85rem;
}

.login-page .input-group .form-control {
  border: none !important;
  background: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.login-page .input-group .form-control::placeholder {
  color: #94a3b8;
}

.login-page .input-group .form-control:focus {
  box-shadow: none;
}

.hb-login-footer-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.hb-login-footer-note i {
  opacity: 0.85;
}

.btn-login {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: linear-gradient(135deg, #3a6d9e 0%, #1a4a6e 100%) !important;
  color: #fff;
  box-shadow: 0 2px 12px rgba(30, 63, 94, 0.22);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  color: #fff;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 63, 94, 0.28);
}

/* ---------- legend patterns ---------- */
.legend-color.hb-total,
.legend-color.total {
  background: repeating-linear-gradient(
    45deg,
    var(--chart-1),
    var(--chart-1) 3px,
    var(--primary-light) 3px,
    var(--primary-light) 6px
  );
}
.legend-color.hb-borrow,
.legend-color.borrow {
  background: repeating-linear-gradient(
    0deg,
    #0d5c56,
    #0d5c56 3px,
    var(--success-bright) 3px,
    var(--success-bright) 6px
  );
}
.legend-color.hb-return,
.legend-color.return {
  background: #fff;
  border: 1px solid var(--hb-slate-200);
}

/* ---------- Success page (loan-success) ---------- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  background: linear-gradient(180deg, #f4f7fb 0%, #e8f0f7 50%, #f0f5f9 100%);
}
.success-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 31, 53, 0.12);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(26, 58, 92, 0.08);
}
.success-header {
  background: linear-gradient(135deg, #0f766e 0%, #0d5c56 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.success-icon {
  font-size: 3.5rem;
  margin: 0.5rem 0 1rem;
  color: #5eead4;
  animation: hb-bounce 2s ease-in-out infinite;
}
@keyframes hb-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.success-body {
  padding: 1.75rem 2rem 2rem;
}
.info-card {
  background: #f6f8fb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #0f766e;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  font-weight: 600;
  color: #475569;
}
.info-value {
  color: #64748b;
  text-align: right;
  max-width: 55%;
}
.btn-success-custom {
  background: linear-gradient(135deg, #0f766e 0%, #0a5c57 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-success-custom:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.45);
}
.floating-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.floating-shapes .shape {
  position: absolute;
  background: rgba(26, 58, 92, 0.06);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.login-page .floating-shapes .shape {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.floating-shapes .shape:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 15%;
  left: 8%;
}
.floating-shapes .shape:nth-child(2) {
  width: 160px;
  height: 160px;
  top: 50%;
  right: 5%;
  animation-delay: 2s;
}
.floating-shapes .shape:nth-child(3) {
  width: 72px;
  height: 72px;
  bottom: 12%;
  left: 20%;
  animation-delay: 4s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}
.loan-code {
  background: linear-gradient(135deg, #2c5a7e 0%, #1a4a6e 100%) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.success-page .hospital-logo {
  color: #a5f3fc;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.success-page .hospital-logo-img {
  width: clamp(36px, 13%, 52px);
  min-width: 36px;
  max-width: 52px;
  height: auto;
}
.success-page .alert-info {
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.25);
  color: #0c4a6e;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .app-sidebar,
  .hb-sidebar {
    min-height: auto;
  }
  .main-container > .main-content {
    margin-left: 0;
    padding: 1rem;
  }
  .hb-sidebar.public-fixed {
    position: relative;
    width: 100%;
    min-width: 100%;
    min-height: auto;
  }
}
