/* ==========================================================
   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;
}

}
/* ==========================================================
   Course Player - Playlist
   ========================================================== */

.playlist-header{
    padding:20px;
    border-bottom:1px solid var(--border);
    background:#fff;
}

.playlist-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:15px;
}

.playlist-meta{

    display:flex;
    flex-direction:column;

    gap:8px;

    color:var(--muted);

    font-size:14px;

}

.playlist-meta i{

    color:var(--primary);

    width:20px;

}

.playlist-progress{

    margin-top:18px;

}

.playlist-progress .progress{

    height:8px;

    border-radius:20px;

    background:#eef2ff;

}

.playlist-progress .progress-bar{

    background:var(--primary);

}
/* ==========================================================
   Course Player - Lesson Cards
   ========================================================== */

.lesson-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:18px;
    margin-bottom:12px;
    transition:.25s;
    text-decoration:none;
    color:var(--text);
}

.lesson-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow);
    border-color:var(--primary);
    color:var(--text);
}

.lesson-card.active{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

.lesson-card.active small{
    color:#dbeafe !important;
}

.lesson-card.active i{
    color:#fff !important;
}
/* ============================= */
/* ?? PROGRESS PAGE STYLES */
/* ============================= */

.course-progress-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.course-card {
    width: 300px;
    padding: 15px;
    background: #111;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.course-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.course-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00ff88;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background: #00ff88;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}

.btn:hover {
    background: #00cc6a;
}