body{
    margin:0;
    font-family:"Segoe UI", Arial;
    background:#ffffff;
}



/* ===== TOPBAR ===== */
.topbar{
position:fixed;
top:0;
left:0;
right:0;

height:60px;
background:white;

display:flex;
align-items:center;
justify-content:space-between;

padding:0 20px;

border-bottom:1px solid #e5e7eb;
box-shadow:0 2px 6px rgba(0,0,0,0.05);

z-index:1000;
}

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

/* ===== TOP RIGHT AREA ===== */
.topRight{
display:flex;
align-items:center;
gap:15px;
height:100%;
}

/* ===== NOTIFICATION WRAP ===== */
.notifBox{
position:relative;
display:flex;
align-items:center;
}

/* ===== NOTIFICATION ICON ===== */
.topIconWrap{
position:relative;

width:38px;
height:38px;

display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;

border-radius:10px;
cursor:pointer;
transition:0.25s;
}

.topIconWrap i{
font-size:16px;
color:#371437;
}

.topIconWrap:hover{
background:#ececec;
transform:translateY(-2px);
}

/* ===== BADGE ===== */
.badgeCount{
position:absolute;
top:-5px;
right:-5px;

min-width:18px;
height:18px;

padding:0 5px;

background:#ef4444;
color:#fff;

font-size:11px;
font-weight:700;

border-radius:50px;

display:flex;
align-items:center;
justify-content:center;
line-height:1;
}

/* ===== DROPDOWN ===== */
.notifDropdown{
position:absolute;
top:48px;
right:0;

width:340px;
max-height:420px;
overflow-y:auto;

background:#fff;
border:1px solid #ececec;
border-radius:14px;

box-shadow:0 14px 30px rgba(0,0,0,0.12);

display:none;
z-index:3000;
}

/* SHOW */
.showNotif{
display:block;
animation:dropFade .2s ease;
}

@keyframes dropFade{
from{
opacity:0;
transform:translateY(-8px);
}
to{
opacity:1;
transform:translateY(0);
}
}

/* ===== HEADER ===== */
.notifHead{
padding:14px 16px;
font-size:14px;
font-weight:700;
color:#111;
border-bottom:1px solid #f3f4f6;
}

/* ===== ITEM ===== */
.notifItem{
display:block;
padding:13px 16px;
text-decoration:none;
color:#111;
border-bottom:1px solid #f8f8f8;
transition:.2s;
}

.notifItem:hover{
background:#fafafa;
}

.notifItem.unread{
background:#f8f4ff;
}

/* ===== CONTENT ===== */
.notifTitle{
font-size:13px;
font-weight:700;
color:#371437;
margin-bottom:4px;
}

.notifMsg{
font-size:12px;
color:#555;
line-height:1.4;
margin-bottom:6px;
}

.notifTime{
font-size:11px;
color:#999;
}

/* ===== EMPTY ===== */
.notifEmpty{
padding:30px 18px;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;

color:#888;
text-align:center;
}

.notifEmpty i{
font-size:24px;
color:#c7c7c7;
}

.notifEmpty span{
font-size:13px;
font-weight:500;
}

/* ===== LOGOUT BUTTON ===== */
.logoutBtn{
margin-top:15px;
display:flex;
align-items:center;
justify-content:center;
gap:6px;

height:38px;
background:#f3f4f6;
border:none;

padding:0 14px;
border-radius:10px;

cursor:pointer;
transition:0.25s;
white-space:nowrap;
}

.logoutBtn:hover{
background:#e5e7eb;
transform:translateY(-1px);
}

/* ===== TOGGLE BUTTON ===== */
.toggleBtn{
display:none;
background:none;
border:none;
font-size:18px;
cursor:pointer;
}

/* ===== SIDEBAR ===== */
.sidebar{
position:fixed;
top:60px;
left:0;
bottom:0;

width:220px;

background:#371437;
color:white;

display:flex;
flex-direction:column;

transition:0.3s;
box-shadow:4px 0 25px rgba(0,0,0,0.35);
}

/* ===== LOGO ===== */
.sidebar-logo{
display:flex;
align-items:center;
gap:12px;
padding:22px;
border-bottom:1px solid rgba(255,255,255,0.15);
}

.logo-circle{
width:40px;
height:40px;
border-radius:50%;
background:#e9e9e9;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

.logo-circle img{
width:70%;
height:70%;
object-fit:contain;
}

/* ===== MENU ===== */
.menu{
flex:1;
padding:14px;
}

.menu-title{
font-size:11px;
opacity:0.6;
margin:16px 12px 6px;
letter-spacing:1px;
}

.menu a{
display:flex;
align-items:center;
gap:12px;

padding:12px 14px;
margin:6px 4px;

border-radius:12px;
text-decoration:none;

color:#f1f1f1;
font-size:14px;

transition:0.25s;
}

.menu a:hover{
background:rgba(187,76,215,0.7);
transform:translateX(5px);
}

.menu a.active{
background:white;
color:#111;
font-weight:600;
}

/* ===== MAIN ===== */
.main{
margin-left:240px;
transition:0.3s;
}


/* ===== MAIN ===== */
.main{
    margin-left:240px;
    transition:0.3s;
    position:relative;
    z-index:1;
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.4);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:1999;
}

body.sidebar-open .sidebar-overlay{
    opacity:1;
    visibility:visible;
}

/* ===== SIDEBAR ===== */
.sidebar{
    position:fixed;
    top:60px;
    left:0;
    bottom:0;

    width:220px;

    background:#371437;
    color:white;

    display:flex;
    flex-direction:column;

    transition:left .3s ease;

    box-shadow:4px 0 25px rgba(0,0,0,0.35);

    z-index:2000;
}

/* ===== RESPONSIVE ===== */

@media (max-width:900px){

    .toggleBtn{
        display:block;
    }

    /* Hide sidebar by default */
    .sidebar{
        left:-220px;
    }

    /* Show sidebar when opened */
    body.sidebar-open .sidebar{
        left:0;
    }

    /* Keep content full width */
    .main{
        margin-left:0;
    }

    /* Notification dropdown */
    .notifDropdown{
        width:300px;
        max-width:calc(100vw - 20px);
    }
}