:root{
  /* Core palette */
  --nav:#272e3e;               /* <— your dark color */
  --nav-border:#31384c;
  --nav-muted:#a9b0c2;

  --bg:#eef1f5;                /* light dark-grey page background */
  --card:#fbfcfe;
  --text:#111827;
  --muted:#6b7280;

  --primary:#4f46e5;
  --primary-600:#4338ca;

  --border:#e5e7eb;
  --sidebar:#272e3e;           /* dark sidebar */
  --sidebar-border:#31384c;

  --shadow:0 6px 18px rgba(0,0,0,.06);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body.app{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}

/* Topbar (dark) */
.topbar{
  position:sticky; top:0; z-index:1030;
  background:var(--nav);
  border-bottom:1px solid var(--nav-border);
  height:64px; display:flex; align-items:center; padding:0 16px;
}
.topbar .brand{
  display:flex; align-items:center; font-weight:700;
  color:#ffffff; text-decoration:none; margin-left:12px;
}
.topbar .brand i{margin-right:10px; color:#ffffff}

/* Icon button inside dark topbar */
.topbar .icon-btn{
  width:38px; height:38px; border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:transparent; color:#e5e7eb; transition:.2s;
}
.topbar .icon-btn:hover{background:rgba(255,255,255,.06); transform:translateY(-1px)}
.topbar .top-actions .dot{ background:#ef4444; }
.topbar .avatar img{ border:2px solid rgba(255,255,255,.18) }

/* Shell */
.app-shell{display:flex; min-height:calc(100vh - 64px)}

/* Sidebar (dark) */
.sidebar{
  width:260px; flex:0 0 260px; background:var(--sidebar);
  border-right:1px solid var(--sidebar-border);
  position:sticky; top:64px; height:calc(100vh - 64px); overflow:auto;
}
.sidebar-inner{padding:8px 8px 24px}
.sidebar-section{margin-top:10px}
.sidebar-label{
  font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--nav-muted); padding:8px 12px;
}
.sidebar-link{
  display:flex; align-items:center; gap:12px; padding:10px 12px; margin:4px 6px;
  color:#cfd6e6; text-decoration:none; border-radius:12px; transition:.15s;
}
.sidebar-link i{width:18px; text-align:center; color:#9aa3b8}
.sidebar-link:hover{background:rgba(255,255,255,.06); color:#fff; text-decoration:none;}
.sidebar-link:hover i{color:#fff}
.sidebar-link.active{
  background:#334056; color:#fff;
}
.sidebar-link.active i{color:#fff}

/* Content */
.content{ flex:1; padding:24px; max-width:100%; }
.page-head{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:16px; }
.breadcrumb{ background:transparent; padding:0; margin:0; font-size:.875rem }

/* Cards & components */
.card{
  border:1px solid var(--border)!important; border-radius:var(--radius)!important;
  box-shadow:var(--shadow); background:var(--card);
}
.card-header{background:transparent; border-bottom:1px solid var(--border)}
.card-title{margin:0; font-weight:600}
.badge-soft{ background:#eef2ff; color:var(--primary); border-radius:999px; padding:.35rem .6rem; }

/* Tables */
.table thead th{border-top:0; color:#374151}
.table tbody td{vertical-align:middle}

/* Footer */
.app-footer{
  margin-top:24px; padding:20px; border-top:1px solid var(--border);
  color:var(--muted); font-size:.9rem;
}

/* Buttons */
.btn-primary{background:var(--primary); border-color:var(--primary)}
.btn-primary:hover{background:var(--primary-600); border-color:var(--primary-600)}

/* Forms */
.form-control{
  border-radius:12px; border:1px solid var(--border);
}
.form-control:focus{
  border-color:var(--primary); box-shadow:0 0 0 .2rem rgba(79,70,229,.15);
}

/* Responsive sidebar */
@media (max-width: 991.98px){
  .sidebar{
    position:fixed; left:-270px; top:64px; height:calc(100vh - 64px);
    transition:left .2s ease; z-index:1031;
  }
  .sidebar.open{left:0}
  .content{padding:16px}
}
