/* ==========================================================
   DigiTantra Community LMS - Student Theme
   ========================================================== */

:root{
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --sidebar:#0f172a;
    --sidebar-hover:#1e293b;
    --bg:#f5f7fb;
    --card:#ffffff;
    --border:#e5e7eb;
    --text:#1f2937;
    --muted:#6b7280;
    --radius:16px;
    --shadow:0 10px 30px rgba(15,23,42,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
}

/* Layout */

.app-wrapper{
    display:flex;
    min-height:100vh;
}

.main-wrapper{
    flex:1;
    margin-left:260px;
    display:flex;
    flex-direction:column;
}

.content-wrapper{
    padding:30px;
}

/* Sidebar */

.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:260px;
    height:100vh;
    background:var(--sidebar);
    color:#fff;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    z-index:1050;
}

.sidebar-logo{
    padding:24px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-logo img{
    max-width:170px;
}

.student-profile{
    padding:25px;
    text-align:center;
}

.student-avatar{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid rgba(255,255,255,.2);
    margin-bottom:12px;
}

.student-profile h6{
    color:#fff;
    margin-bottom:4px;
}

.student-profile small{
    color:#cbd5e1;
}

.sidebar-menu{
    list-style:none;
    padding:0;
    margin:10px 0;
}

.sidebar-menu li{
    margin:6px 12px;
}

.sidebar-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#cbd5e1;
    padding:13px 18px;
    border-radius:12px;
    transition:.25s;
}

.sidebar-menu a:hover{
    background:var(--sidebar-hover);
    color:#fff;
}

.sidebar-menu li.active a{
    background:var(--primary);
    color:#fff;
}

.sidebar-footer{
    margin-top:auto;
    padding:20px;
}

.logout-btn{
    display:block;
    text-align:center;
    text-decoration:none;
    background:#ef4444;
    color:#fff;
    padding:12px;
    border-radius:12px;
}

.logout-btn:hover{
    background:#dc2626;
    color:#fff;
}

/* Topbar */

.topbar{
    height:80px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:1000;
}

.topbar-left{
    display:flex;
    align-items:center;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.search-box{
    background:#f3f4f6;
    border-radius:12px;
    padding:10px 15px;
    display:flex;
    align-items:center;
    gap:10px;
}

.search-box input{
    border:none;
    background:transparent;
    outline:none;
    min-width:220px;
}

/* Cards */

.card{
    border:none;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.dashboard-card{
    padding:24px;
    background:#fff;
    border-radius:var(--radius);
    transition:.25s;
}

.dashboard-card:hover{
    transform:translateY(-5px);
}

.dashboard-card h3{
    font-size:28px;
    font-weight:700;
    margin-top:10px;
}

.dashboard-card small{
    color:var(--muted);
}

/* Tables */

.table{
    background:#fff;
    border-radius:var(--radius);
}

/* Buttons */

.btn-primary{
    background:var(--primary);
    border:none;
}

.btn-primary:hover{
    background:var(--primary-dark);
}

/* Mobile */

@media(max-width:991px){

.sidebar{
    transform:translateX(-100%);
    transition:.3s;
}

.sidebar.show{
    transform:translateX(0);
}

.main-wrapper{
    margin-left:0;
}

.content-wrapper{
    padding:20px;
}

.search-box{
    display:none!important;
}

}