/* Medical Center Dashboard - small overrides */
.kpi-card .kpi-title{font-size:.85rem;opacity:.8;margin-bottom:.25rem}
.kpi-card .kpi-value{font-size:1.6rem;font-weight:700;line-height:1.1}
.kpi-card .kpi-sub{font-size:.85rem;opacity:.8}
.table thead th{white-space:nowrap}
.badge-soft{background:rgba(13,110,253,.1);color:rgb(13,110,253)}
.badge-soft-warning{background:rgba(255,193,7,.15);color:rgb(153,101,21)}
.badge-soft-danger{background:rgba(220,53,69,.12);color:rgb(220,53,69)}
.badge-soft-success{background:rgba(25,135,84,.12);color:rgb(25,135,84)}



/* ===== Pro look & feel ===== */
:root{
  --mc-radius: 16px;
  --mc-shadow: 0 10px 30px rgba(0,0,0,.06);
  --mc-shadow-soft: 0 6px 18px rgba(0,0,0,.05);
}

body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(13,110,253,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(25,135,84,.10), transparent 60%),
    radial-gradient(900px 500px at 60% 110%, rgba(220,53,69,.08), transparent 60%);
}

.mc-card{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--mc-radius);
  box-shadow: var(--mc-shadow-soft);
  overflow: hidden;
}

.mc-card-header{
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1rem;
}

.mc-card-title{
  font-weight: 700;
  line-height: 1.1;
}
.mc-card-sub{
  font-size: .85rem;
  opacity: .8;
  margin-top: .15rem;
}

.mc-chart{
  height: 360px;
  min-height: 360px;
}
.mc-chart-sm{
  height: 300px;
  min-height: 300px;
}
@media (max-width: 992px){
  .mc-chart{height:320px;min-height:320px}
}
@media (max-width: 576px){
  .mc-chart{height:280px;min-height:280px}
}
.mc-grid{display:grid;gap:1rem}
.mc-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 1200px){.mc-grid-2{grid-template-columns:1fr}}
.mc-actions .btn{padding:.25rem .45rem}
.mc-actions .btn i{font-size:1rem}
.mc-toolbar{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;justify-content:space-between}
.mc-table-wrap{overflow:auto}
.table thead th{position:sticky;top:0;z-index:2}
.kpi-card{
  border-radius: var(--mc-radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--mc-shadow-soft);
}

.table{
  border-color: rgba(0,0,0,.06);
}
.table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.table tbody tr:hover{
  background: rgba(13,110,253,.04);
}

.form-control, .form-select, .btn{
  border-radius: 12px;
}

.badge{
  border-radius: 999px;
  padding: .45em .65em;
  font-weight: 600;
}

.mc-tooltip{
  padding: .6rem .75rem;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: var(--mc-shadow);
}

.mc-tt-title{font-weight:800;font-size:.95rem;line-height:1.2;margin-bottom:.1rem}
.mc-tt-sub{font-size:.8rem;opacity:.75;margin-top:.15rem}
.mc-tt-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.35rem}
.mc-tt-row b{font-weight:800}
.mc-tt-list{margin-top:.45rem;padding-top:.45rem;border-top:1px dashed rgba(0,0,0,.12);max-height:180px;overflow:auto}
.mc-tt-line{font-size:.82rem;line-height:1.25;margin:.15rem 0}

/* Sidebar polish: active indicator (works with template nav) */
#mc-nav a.nav-link.active{
  border-radius: 12px;
  background: rgba(13,110,253,.10);
  font-weight: 700;
}
#mc-nav a.nav-link:hover{
  border-radius: 12px;
  background: rgba(0,0,0,.03);
}

/* Dark mode tweaks */
[data-bs-theme="dark"] body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(13,110,253,.25), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(25,135,84,.22), transparent 60%),
    radial-gradient(900px 500px at 60% 110%, rgba(220,53,69,.18), transparent 60%);
}
[data-bs-theme="dark"] .mc-card{
  border-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .mc-card-header{
  background: rgba(20,20,20,.55);
  border-bottom-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .table thead th{
  background: rgba(20,20,20,.75);
  border-bottom-color: rgba(255,255,255,.10);
}


/* ===== Layout fixes (no squeezed charts) ===== */
.admin-layout .container-fluid{max-width: 1400px;}
.chart-card .card-body{display:flex;flex-direction:column;gap:.5rem}
.mc-chart{width:100%;height:380px;min-height:380px}
@media (max-width: 992px){.mc-chart{height:340px;min-height:340px}}
@media (max-width: 576px){.mc-chart{height:300px;min-height:300px}}

.table-responsive{border-radius:var(--mc-radius);overflow:hidden}
.table thead th{position:sticky;top:0;z-index:2;background:rgba(255,255,255,.96);backdrop-filter:saturate(180%) blur(10px)}
[data-bs-theme="dark"] .table thead th{background:rgba(33,37,41,.96)}
.table-hover tbody tr:hover{transform:translateY(-1px)}
.mc-actions .btn{border-radius:12px}
.mc-actions .btn i{font-size:1.05rem;line-height:1}

/* ===== Button sizing (avoid huge buttons) ===== */
.btn{
  padding: .42rem .75rem;
  font-size: .92rem;
  line-height: 1.2;
}
.btn-sm{
  padding: .28rem .55rem;
  font-size: .82rem;
}
.btn i{font-size: 1rem; line-height: 1;}
.btn-group .btn{padding: .38rem .7rem;}

/* Slightly softer hover */
.btn{transition: transform .12s ease, box-shadow .12s ease;}
.btn:hover{transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.06);} 
.btn:active{transform: translateY(0);} 

/* ===== Modal polish ===== */
.mc-modal{border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.18);border:1px solid rgba(0,0,0,.06)}
.mc-modal .modal-header{background:linear-gradient(180deg, rgba(13,110,253,.08), transparent)}
[data-bs-theme="dark"] .mc-modal .modal-header{background:linear-gradient(180deg, rgba(13,110,253,.18), transparent)}
.mc-modal .form-control,.mc-modal .form-select{border-radius:14px}
.mc-modal .btn{border-radius:14px}

/* ===== Color tuning ===== */
:root{
  --mc-primary: #2563eb;
  --mc-accent: #22c55e;
  --mc-warn: #f59e0b;
  --mc-danger: #ef4444;
}
.badge-soft{background:rgba(37,99,235,.12);color:var(--mc-primary)}
.badge-soft-warning{background:rgba(245,158,11,.16);color:#9a5b00}
.badge-soft-danger{background:rgba(239,68,68,.14);color:var(--mc-danger)}
.badge-soft-success{background:rgba(34,197,94,.14);color:var(--mc-accent)}
