:root {
  --bmu-primary: #0a8b85;
  --bmu-primary-dark: #065f5a;
  --bmu-accent: #4fd1c5;
  --bmu-bg: #eef4f7;
  --bmu-card: #ffffff;
  --bmu-text: #1f2937;
}

body {
  background: var(--bmu-bg);
  color: var(--bmu-text);
  min-height: 100vh;
}

.login-body {
  background: linear-gradient(135deg, #031d1d, #0a8b85);
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bmu-primary), var(--bmu-accent));
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 290px;
  background: linear-gradient(180deg, #2ed4cf 0%, #0a8b85 45%, #033b39 100%);
  color: #fff;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform .25s ease;
  z-index: 1030;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  margin-bottom: 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: rgba(255,255,255,.95);
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 6px;
  font-size: .95rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.15);
}

.main-content {
  flex: 1;
  min-width: 0;
}

.topbar {
  background: linear-gradient(90deg, #59d7d4, #78e5e1);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.search-form {
  display: flex;
  gap: 10px;
  min-width: min(100%, 420px);
}

.content-wrap {
  padding: 18px;
}

.breadcrumb-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.metric-card {
  border-radius: 20px;
}

.metric-card .card-body {
  padding: 22px 12px;
}

.metric-title {
  font-weight: 600;
  font-size: .92rem;
  min-height: 44px;
}

.metric-value {
  color: #114488;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.panel-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .07);
}

.panel-card .card-header {
  background: linear-gradient(180deg, #f8fafc, #edf2f7);
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
}

.panel-scroll {
  max-height: 360px;
  overflow: auto;
}

.goal-item .progress {
  height: 8px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--bmu-primary), var(--bmu-accent));
}

.table thead th {
  white-space: nowrap;
  background: #f8fafc;
}

.status-badge.status-pending { background: #fff3cd; color: #664d03; }
.status-badge.status-followup { background: #cff4fc; color: #055160; }
.status-badge.status-admitted { background: #d1e7dd; color: #0f5132; }
.status-badge.status-dead { background: #f8d7da; color: #842029; }
.status-badge.status-query { background: #e2e3e5; color: #41464b; }
.status-badge.status-open { background: #cff4fc; color: #055160; }

.floating-help {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bmu-primary), var(--bmu-accent));
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(10, 139, 133, .35);
}

#dashboardCalendar {
  min-height: 550px;
}

.fc .fc-button-primary {
  background: var(--bmu-primary);
  border-color: var(--bmu-primary);
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    min-width: 100%;
  }
}

.sidebar-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
  padding: 10px 12px 6px;
}

.admin-mini-card {
  border-radius: 18px;
  border: 0;
  box-shadow: 0 6px 20px rgba(15,23,42,.07);
}

.admin-mini-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.table-select-col {
  width: 44px;
}
