:root{
--sidebar:#0f172a;
--sidebar-dark:#020617;
--card:#1e293b;
--bg:#0b1120;
--border:#334155;
--text:#e2e8f0;
--muted:#94a3b8;
}

body{
margin:0;
background:var(--bg);
color:var(--text);
font-family:'Segoe UI',sans-serif;
}

.sidebar{
position:fixed;
left:0;
top:0;
width:280px;
height:100vh;
background:linear-gradient(180deg,var(--sidebar),var(--sidebar-dark));
overflow-y:auto;
transition:.3s;
z-index:999;
}

.sidebar.collapsed{
width:80px;
}

.sidebar.collapsed .menu-text{
display:none;
}

.logo{
padding:22px;
font-size:30px;
font-weight:700;
border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar a{
display:block;
padding:14px 20px;
color:#cbd5e1;
text-decoration:none;
transition:.3s;
}

.sidebar a:hover{
background:#1e293b;
color:#fff;
}

.sidebar .active{
background:#2563eb;
color:#fff;
}

.sidebar i{
width:25px;
}

.submenu{
padding-left:55px !important;
background:#08111f;
font-size:14px;
border-left:2px solid #2563eb;
margin-left:20px;
}

.menu-arrow{
font-size:12px;
transition:.3s;
}

.main-content{
margin-left:260px;
transition:.3s;
min-height:100vh;
}

.main-content.expanded{
margin-left:80px;
}

.topbar{
height:70px;
background:#111827;
border-bottom:1px solid var(--border);
display:flex;
justify-content:space-between;
align-items:center;
padding:0 25px;
}

.page-content{
padding:25px;
}

.dashboard-card{
background:var(--card);
border-radius:16px;
padding:24px;
border:1px solid rgba(255,255,255,.05);
box-shadow:0 5px 18px rgba(0,0,0,.25);
height:100%;
}

.dashboard-card:hover{
transform:translateY(-4px);
}

.card-icon{
font-size:46px;
opacity:.15;
}

.table{
color:#fff !important;
}

.table td{
background:transparent !important;
color:#fff;
border-color:#334155;
}

.table th{
color:#94a3b8;
border-color:#334155;
font-size:12px;
text-transform:uppercase;
}

.list-group-item{
background:#111827;
color:#fff;
border-color:#334155;
}

@media(max-width:991px){

.sidebar{
left:-260px;
}

.sidebar.mobile-show{
left:0;
}

.main-content{
margin-left:0;
}

}


/* Sidebar Search */

.sidebar-search{
padding:15px;
}

.sidebar-search input{
background:#111827;
border:1px solid #334155;
color:#fff;
}

.sidebar-search input:focus{
background:#111827;
color:#fff;
border-color:#2563eb;
box-shadow:none;
}

/* Menu */

.menu-parent{
cursor:pointer;
}

.menu-parent[aria-expanded="true"] .menu-arrow{
transform:rotate(90deg);
}

.menu-arrow{
transition:.3s;
}

/* Active */

.sidebar a.active{
background:#2563eb;
border-radius:10px;
margin:4px 10px;
}

/* Profile */

.sidebar-profile{
position:absolute;
bottom:0;
width:100%;
padding:15px;
border-top:1px solid rgba(255,255,255,.08);
background:#020617;
}

.profile-box{
display:flex;
align-items:center;
gap:10px;
}

.profile-avatar{
width:40px;
height:40px;
border-radius:50%;
background:#2563eb;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}

/* Notification */

.notification-dot{
position:absolute;
top:5px;
right:5px;
width:8px;
height:8px;
background:red;
border-radius:50%;
}

/* Footer */

.sidebar-footer{
padding:10px 20px;
font-size:12px;
color:#94a3b8;
text-align:center;
}

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:260px;
    height:100vh;
    overflow-y:auto;
    overflow-x:hidden;
}

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#334155;
}


.sidebar{
    display:flex;
    flex-direction:column;
}

.sidebar-menu{
    flex:1;
}

.sidebar-profile{
    margin-top:auto;
}

.sidebar-search input{
    background:#111827;
    border:1px solid #334155;
    color:#fff;
}

.sidebar-search input:focus{
    background:#111827;
    color:#fff;
    border-color:#2563eb;
    box-shadow:none;
}

.sidebar-search input{
    background:#111827;
    border:1px solid #334155;
    color:#fff;
}

.sidebar-search input:focus{
    background:#111827;
    color:#fff;
    border-color:#2563eb;
    box-shadow:none;
}

.dashboard-card{
    overflow:hidden;
    position:relative;
}

.dashboard-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:4px;
    height:100%;
    background:#2563eb;
}