*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter', sans-serif;
}

body{
    background: radial-gradient(circle at top, #2F1821, #0F1016);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height:100vh;
    color:#fff;
}

/* SIDEBAR */
.sidebar{
    width:250px;
    height:100vh;
    position:fixed;
    left:0;
    top:0;
    background:#0F1016;
    padding:20px;
    border-right:1px solid rgba(255,255,255,0.05);
}

.sidebar h2{
    color:#ff3b6b;
    margin-bottom:30px;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    padding:8px 14px;
    font-size: 14px;
    border-radius:10px;
    margin-bottom:6px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    color:rgba(255,255,255,0.7);
    transition:all 0.2s ease;
}

.sidebar ul li:hover{
    background:rgba(255,255,255,0.05);
    color:#fff;
    box-shadow:0 0 0 1px rgba(255,255,255,0.05);
}

.sidebar ul li.active{
    position:relative;
    background:linear-gradient(90deg, rgba(255,59,107,0.15), rgba(255,59,107,0.05));
    color:#fff;
    border:1px solid rgba(255,59,107,0.3);
}

.sidebar ul li.active::before{
    content:"";
    position:absolute;
    left:-20px;
    top:8px;
    bottom:8px;
    width:3px;
    background:#ff3b6b;
    border-radius:2px;
}

/* MAIN */
.main{
    margin-left:250px;
    padding:100px 40px 40px 40px; /* increased top padding */
}
.topbar{
    position:fixed;
    top:0;
    left:250px; /* same as sidebar width */
    right:0;
    height:60px;
    background:#0F1016;
    backdrop-filter: blur(10px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    border-bottom:1px solid rgba(255,255,255,0.05);
    z-index:1000;
}

.topbar .search{
    background:#020617;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:8px;
    padding:8px 12px;
    color:#fff;
    width:250px;
}

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

.topbar .user span{
    font-size:14px;
    opacity:0.8;
}

.topbar .user-avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid rgba(255,255,255,0.2);
    cursor:pointer;
    transition:0.2s;
}

.topbar .user-avatar:hover{
    border-color:#ff3b6b;
    transform:scale(1.05);
}

/* HEADER */
.header{
    font-size:32px;
    font-weight:700;
    margin-bottom:30px;
}

.header span{
    color:#ff3b6b;
}

/* CARDS */
.grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:20px;
}

.card{
    background:linear-gradient(145deg,#151922,#0F1016);
    padding:22px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.05);
    transition:all 0.25s ease;
    position:relative;
    overflow:hidden;
}

.card:hover{
    transform:translateY(-6px);
    border-color:rgba(255,59,107,0.4);
    box-shadow:0 10px 30px rgba(255,59,107,0.08);
}

.card h3{
    margin-top:10px;
}

.card p{
    font-size:14px;
    color:rgba(255,255,255,0.6);
    margin-top:6px;
}

.badge{
    float:right;
    font-size:10px;
    padding:4px 8px;
    border-radius:6px;
    background:rgba(16,185,129,0.15);
    color:#10b981;
    border:1px solid rgba(16,185,129,0.3);
    font-weight:600;
}

/* BUTTON */
.btn{
    display:inline-block;
    padding:10px 16px;
    background:#6366f1;
    border-radius:8px;
    margin-top:10px;
    text-decoration:none;
    color:#fff;
}

.card::after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top left, rgba(255,59,107,0.15), transparent 60%);
    opacity:0;
    transition:0.3s;
}

.card:hover::after{
    opacity:1;
}