:root{
  --pc-primary:#0F5F59;      /* teal - from the myPhysioOne logo */
  --pc-primary-dark:#0A4B45;
  --pc-accent:#FFA51F;       /* orange - from the myPhysioOne logo */
  --pc-bg:#f4f7f6;
  --pc-sidebar:#0A2E2A;
  --pc-sidebar-hover:#0F5F59;
  --pc-text:#1f2937;
  --pc-muted:#6b7280;
  --pc-radius:14px;
}
*{box-sizing:border-box}
body{
  background:var(--pc-bg);
  color:var(--pc-text);
  font-family:'Segoe UI',Roboto,-apple-system,sans-serif;
  font-size:14.5px;
}
a{text-decoration:none}

/* ---------- Layout ---------- */
.pc-wrapper{display:flex;min-height:100vh}
.pc-sidebar{
  width:250px;background:var(--pc-sidebar);color:#e6f4f2;
  flex-shrink:0;position:fixed;top:0;bottom:0;left:0;overflow-y:auto;
  transition:transform .25s ease; z-index:1030;
}
.pc-sidebar .brand{
  padding:22px 20px;font-size:1.25rem;font-weight:700;color:#fff;
  display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.08);
}
.pc-sidebar .brand .dot{width:10px;height:10px;background:#FFA51F;border-radius:50%;display:inline-block}
.pc-sidebar .brand .brand-logo-box{background:#fff;border-radius:10px;padding:8px 14px;display:inline-flex;align-items:center;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.pc-sidebar .nav-section{padding:14px 20px 6px;font-size:.72rem;letter-spacing:.08em;color:#7fbdb6;text-transform:uppercase}
.pc-sidebar a.nav-link{
  color:#cfe9e5;padding:11px 20px;display:flex;align-items:center;gap:12px;font-size:.92rem;
  border-left:3px solid transparent;
}
.pc-sidebar a.nav-link:hover{background:rgba(255,255,255,.06);color:#fff}
.pc-sidebar a.nav-link.active{background:var(--pc-sidebar-hover);color:#fff;border-left-color:#FFA51F;font-weight:600}
.pc-sidebar a.nav-link i{width:18px;text-align:center}

.pc-main{margin-left:250px;flex:1;min-width:0;display:flex;flex-direction:column}
.pc-topbar{
  background:#fff;padding:14px 26px;display:flex;justify-content:space-between;align-items:center;
  box-shadow:0 1px 3px rgba(0,0,0,.06);position:sticky;top:0;z-index:1020;
}
.pc-topbar .page-title{font-size:1.15rem;font-weight:700;color:var(--pc-text)}
.pc-content{padding:26px}

/* ---------- Cards ---------- */
.pc-card{background:#fff;border-radius:var(--pc-radius);border:1px solid #eef1f0;box-shadow:0 2px 10px rgba(15,23,22,.04)}
.pc-card .pc-card-header{padding:16px 20px;border-bottom:1px solid #f0f2f1;font-weight:700;display:flex;justify-content:space-between;align-items:center}
.pc-card .pc-card-body{padding:20px}

.stat-card{border-radius:var(--pc-radius);padding:20px;color:#fff;position:relative;overflow:hidden}
.stat-card i{font-size:2rem;opacity:.35;position:absolute;right:16px;top:16px}
.stat-card .stat-value{font-size:1.7rem;font-weight:800}
.stat-card .stat-label{font-size:.82rem;opacity:.9}
.bg-teal{background:linear-gradient(135deg,#0F5F59,#0A3833)}
.bg-blue{background:linear-gradient(135deg,#2563eb,#1e3a8a)}
.bg-amber{background:linear-gradient(135deg,#FFA51F,#C97A0A)}
.bg-rose{background:linear-gradient(135deg,#e11d48,#881337)}

/* ---------- Tables ---------- */
.table-clean thead th{
  background:#f3f6f5;color:#374151;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;
  border-bottom:2px solid #e5e7eb;font-weight:700;
}
.table-clean td, .table-clean th{vertical-align:middle;padding:12px 14px}
.table-clean tbody tr:hover{background:#f8fbfa}

/* ---------- Misc ---------- */
.btn-primary{background:var(--pc-primary);border-color:var(--pc-primary)}
.btn-primary:hover{background:var(--pc-primary-dark);border-color:var(--pc-primary-dark)}
.text-primary-pc{color:var(--pc-primary)}
.text-accent-pc{color:var(--pc-accent)}
.bg-accent-pc{background:var(--pc-accent)}
.btn-accent-pc{background:var(--pc-accent);border-color:var(--pc-accent);color:#fff}
.btn-accent-pc:hover{background:#E08F0F;border-color:#E08F0F;color:#fff}
.avatar-circle{
  width:38px;height:38px;border-radius:50%;background:var(--pc-primary);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;
}
.login-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at top left,#0A3833,#0A2E2A 60%);
}
.login-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.3);max-width:900px;width:100%}
.login-side{background:linear-gradient(160deg,#0F5F59,#0A2E2A);color:#fff;padding:50px 40px}
.pain-scale span{display:inline-block;width:26px;height:26px;line-height:26px;text-align:center;border-radius:50%;font-size:.75rem;margin-right:3px}
.progress-thin{height:6px;border-radius:6px}
.timeline{border-left:2px solid #e5e7eb;margin-left:10px;padding-left:20px}
.timeline .t-item{position:relative;padding-bottom:22px}
.timeline .t-item::before{content:'';position:absolute;left:-26px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--pc-primary);border:2px solid #fff;box-shadow:0 0 0 2px var(--pc-primary)}

@media(max-width:991px){
  .pc-sidebar{transform:translateX(-100%)}
  .pc-sidebar.show{transform:translateX(0)}
  .pc-main{margin-left:0}
}
@media(max-width:576px){
  /* Bootstrap's grid columns are flex items, which by default won't shrink
     below their content's natural width (min-width:auto) - if a stat card's
     icon + label need more horizontal room than half a narrow phone screen
     allows, the whole row is forced wider than the viewport, causing
     horizontal overflow/cut-off content site-wide. This is the standard,
     correct fix: explicitly allow columns to shrink, and trim the stat
     card's own content sizing so it comfortably fits at 2-per-row. */
  .row > [class*="col-"]{ min-width:0 }
  .stat-card{ padding:14px }
  .stat-card i{ font-size:1.3rem; right:10px; top:10px }
  .stat-card .stat-value{ font-size:1.3rem }
  .stat-card .stat-label{ font-size:.72rem }
}
