@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
    --orange:#ff6600;
    --orange2:#ff8a1f;
    --bg:#07111c;
    --surface:#0c1825;
    --card:#101e2c;
    --card2:#142638;
    --border:#24384b;
    --text:#f5f7fa;
    --muted:#8fa1b3;
    --success:#39d875;
    --warning:#ff9f1c;
    --danger:#ff4d4f;
    --shadow:0 12px 32px rgba(0,0,0,.22);
    --sidebar:230px;
}
body.light-mode{
    --bg:#f3f6f9;
    --surface:#ffffff;
    --card:#ffffff;
    --card2:#f7f9fb;
    --border:#dce3ea;
    --text:#17202a;
    --muted:#6c7a86;
    --shadow:0 10px 28px rgba(22,34,51,.08);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
    margin:0;
    font-family:Inter,"Segoe UI",Arial,sans-serif;
    background:radial-gradient(circle at 90% 0%,rgba(255,102,0,.08),transparent 28%),var(--bg);
    color:var(--text);
    transition:background .2s,color .2s;
}
a{color:inherit}
.app-shell{display:flex;min-height:100vh}
.sidebar{
    width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:linear-gradient(180deg,#091523,var(--surface));
    border-right:1px solid var(--border);padding:18px 14px;display:flex;flex-direction:column;z-index:1100;
}
body.light-mode .sidebar{background:var(--surface)}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:7px 7px 22px}
.brand-mark,.tenant-avatar{
    width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;
    border:2px solid var(--orange);box-shadow:0 0 22px rgba(255,102,0,.2)
}
.brand-name{font-weight:800;font-size:17px}
.brand-product{font-size:11px;color:var(--muted)}
.sidebar-nav{display:grid;gap:6px}
.sidebar-nav a{
    text-decoration:none;display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:9px;color:var(--muted);
    font-size:13px;font-weight:500;
}
.sidebar-nav a:hover,.sidebar-nav a.active{
    color:#fff;background:linear-gradient(90deg,rgba(255,102,0,.48),rgba(255,102,0,.12));box-shadow:inset 2px 0 var(--orange)
}
body.light-mode .sidebar-nav a:hover,body.light-mode .sidebar-nav a.active{color:#4a250d}
.sidebar-footer{margin-top:auto;border-top:1px solid var(--border);padding-top:14px}
.tenant-chip{display:flex;align-items:center;gap:10px;padding:8px}
.tenant-avatar{width:34px;height:34px;font-size:14px}
.tenant-name{font-size:12px;font-weight:600;max-width:125px}
.tenant-role{font-size:10px;color:var(--muted);text-transform:capitalize}
.app-main{margin-left:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh}
.topbar{
    height:68px;background:rgba(12,24,37,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);
    display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:1000;
}
body.light-mode .topbar{background:rgba(255,255,255,.94)}
.topbar-title{font-size:17px;font-weight:700}
.topbar-subtitle{font-size:11px;color:var(--muted)}
.topbar-actions{display:flex;align-items:center;gap:10px}
.user-label{font-size:12px;color:var(--muted)}
.icon-btn{
    width:37px;height:37px;border-radius:9px;border:1px solid var(--border);background:transparent;color:var(--text);
    display:grid;place-items:center;cursor:pointer;
}
.icon-btn:hover{border-color:var(--orange);color:var(--orange)}
.content-area{padding:24px}
.hero-title{font-size:25px;font-weight:750;margin:0}
.hero-subtitle{color:var(--muted);font-size:12px}
.s-card{
    background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 94%, black 6%));border:1px solid var(--border);
    border-radius:13px;box-shadow:var(--shadow);height:100%;
}
body.light-mode .s-card{background:var(--card)}
.s-card-header{padding:14px 16px;border-bottom:1px solid var(--border);font-weight:650;font-size:13px}
.s-card-body{padding:16px}
.metric-card{padding:15px 16px}
.metric-label{font-size:11px;color:var(--muted)}
.metric-number{font-size:28px;font-weight:750;margin-top:3px}
.metric-icon{font-size:24px;color:var(--orange)}
.metric-note{font-size:10px;color:var(--muted)}
.form-control,.form-select{
    background:var(--surface);border-color:var(--border);color:var(--text);border-radius:9px
}
.form-control:focus,.form-select:focus{background:var(--surface);color:var(--text);border-color:var(--orange);box-shadow:0 0 0 .2rem rgba(255,102,0,.1)}
.form-control::placeholder{color:var(--muted)}
.form-select option{background:var(--surface);color:var(--text)}
.table{--bs-table-bg:transparent;--bs-table-color:var(--text);--bs-table-border-color:var(--border);margin-bottom:0}
.table thead th{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.table td{font-size:12px;vertical-align:middle}
.btn-sebedig{background:linear-gradient(135deg,var(--orange2),var(--orange));border:0;color:#fff;font-weight:650;border-radius:8px}
.btn-sebedig:hover{background:var(--orange2);color:#fff}
.btn-outline-sebedig{border-color:var(--orange);color:var(--orange);border-radius:8px}
.btn-outline-sebedig:hover{background:var(--orange);color:#fff}
.badge-soft-success{background:rgba(57,216,117,.12);color:var(--success);border:1px solid rgba(57,216,117,.25)}
.badge-soft-warning{background:rgba(255,159,28,.12);color:var(--warning);border:1px solid rgba(255,159,28,.25)}
.badge-soft-danger{background:rgba(255,77,79,.12);color:var(--danger);border:1px solid rgba(255,77,79,.25)}
.video-thumb{
    width:120px;aspect-ratio:16/9;background:#02070c;border:1px solid var(--border);border-radius:8px;object-fit:cover
}
.list-group-item{
    background:var(--card);color:var(--text);border-color:var(--border)
}
.drag-handle{cursor:grab;color:var(--muted);font-size:18px}
.login-page{
    min-height:100vh;display:grid;place-items:center;padding:24px;
    background:linear-gradient(rgba(3,11,20,.56),rgba(3,11,20,.7)),url('../img/login-bg.svg') center/cover no-repeat;
}
.login-box{
    width:min(430px,100%);background:rgba(7,17,28,.90);border:1px solid rgba(255,255,255,.08);border-radius:18px;
    padding:30px;box-shadow:0 30px 70px rgba(0,0,0,.45);backdrop-filter:blur(11px);color:#fff;
}
.login-logo{display:flex;align-items:center;gap:12px;margin-bottom:25px}
.login-logo .brand-mark{width:46px;height:46px}
.otp-code{font-size:24px;letter-spacing:.35em;text-align:center;font-weight:700}
.alert{border-radius:10px}
@media(max-width:991.98px){
    .sidebar{transform:translateX(-100%);transition:transform .2s}
    .sidebar.open{transform:translateX(0)}
    .app-main{margin-left:0;width:100%}
    .content-area{padding:17px}
}
