/* ===========================================
   AI Profit Advantage Enterprise Platform
   RC1.3.1 Student Dashboard
=========================================== */

:root{
    --primary:#08152B;
    --secondary:#C9A227;
    --surface:#FFFFFF;
    --background:#F5F7FA;
    --text:#1E293B;
    --muted:#64748B;
    --border:#E5E7EB;
    --shadow:0 8px 24px rgba(0,0,0,.08);
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--background);
    color:var(--text);
    font-family:"DM Sans",sans-serif;
}

.dashboard-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    min-height:100vh;
}

/* ===========================================
   Sidebar
=========================================== */

.dashboard-sidebar{
    background:var(--primary);
    color:#fff;
    padding:32px 24px;
}

.dashboard-sidebar .brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:40px;
    text-decoration:none;
    color:#fff;
}

.dashboard-sidebar nav{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.dashboard-sidebar a{
    color:#fff;
    text-decoration:none;
    padding:14px 16px;
    border-radius:10px;
    transition:.25s ease;
    font-weight:500;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active{
    background:var(--secondary);
    color:var(--primary);
}

/* ===========================================
   Main Area
=========================================== */

.dashboard-main{
    padding:40px;
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:40px;
}

.dashboard-search{
    width:320px;
    max-width:100%;
    padding:14px 18px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    font-size:15px;
}

.dashboard-profile{
    display:flex;
    align-items:center;
    gap:12px;
}

.dashboard-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    background:var(--secondary);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--primary);
    font-weight:700;
}

/* ===========================================
   Statistics Cards
=========================================== */

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    margin-bottom:40px;
}

.dashboard-card{
    background:var(--surface);
    border-radius:14px;
    padding:24px;
    box-shadow:var(--shadow);
}

.dashboard-card h3{
    margin:0 0 10px;
    font-size:14px;
    color:var(--muted);
}

.dashboard-card strong{
    display:block;
    font-size:2rem;
    color:var(--primary);
}

/* ===========================================
   Sections
=========================================== */

.dashboard-section{
    margin-top:50px;
}

.dashboard-section h2{
    margin-bottom:20px;
    color:var(--primary);
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
}

.dashboard-panel{
    background:#fff;
    border-radius:14px;
    padding:24px;
    box-shadow:var(--shadow);
}

.dashboard-panel h3{
    margin-top:0;
    color:var(--primary);
}

.dashboard-panel ul{
    padding-left:20px;
    margin:0;
}

.dashboard-panel li{
    margin-bottom:12px;
}

/* ===========================================
   Buttons
=========================================== */

.dashboard-actions{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-top:20px;
}

/* ===========================================
   Responsive
=========================================== */

@media (max-width:1100px){

.dashboard-layout{
    grid-template-columns:240px 1fr;
}

.dashboard-cards{
    grid-template-columns:repeat(2,1fr);
}

}

@media (max-width:768px){

.dashboard-layout{
    grid-template-columns:1fr;
}

.dashboard-sidebar{
    padding:20px;
}

.dashboard-main{
    padding:24px;
}

.dashboard-header{
    flex-direction:column;
    align-items:flex-start;
}

.dashboard-cards{
    grid-template-columns:1fr;
}

.dashboard-search{
    width:100%;
}

.welcome-title{
    display:flex;
    align-items:center;
    gap:14px;
}

.wave-icon{
    transform-origin:70% 70%;
    animation:wave 1.6s ease-in-out infinite;
}

@keyframes wave{

    0%{transform:rotate(0deg);}
    10%{transform:rotate(16deg);}
    20%{transform:rotate(-10deg);}
    30%{transform:rotate(16deg);}
    40%{transform:rotate(-6deg);}
    50%{transform:rotate(12deg);}
    60%{transform:rotate(0deg);}
    100%{transform:rotate(0deg);}

}

}
/* ===========================
   Course Library
=========================== */

.course-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
    margin-top:40px;
}

.course-card{
    background:#fff;
    border-radius:16px;
    padding:24px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    transition:.3s ease;
}

.course-card:hover{
    transform:translateY(-6px);
    box-shadow:0 14px 30px rgba(0,0,0,.12);
}
.course-image{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:20px;
}
.course-card h3{
    margin-bottom:12px;
    color:#1E293B;
}

.course-card p{
    color:#64748B;
    line-height:1.6;
    margin-bottom:20px;
}

.course-card .btn{
    display:inline-block;
    padding:12px 22px;
    background:#2563EB;
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    font-weight:600;
    transition:.25s;
}

.course-card .btn:hover{
    background:#1D4ED8;
}

.course-card .coming-soon{
    background:#E5E7EB;
    color:#475569;
    cursor:not-allowed;
}
/* ==========================================
   PREMIUM COURSE LIBRARY
========================================== */

.course-badge{
    display:inline-block;
    padding:6px 14px;
    border-radius:30px;
    color:#fff;
    font-size:.75rem;
    font-weight:700;
    margin-bottom:18px;
}

.beginner{
    background:#16a34a;
}

.intermediate{
    background:#2563eb;
}

.advanced{
    background:#7c3aed;
}

.upcoming{
    background:#f59e0b;
}

.course-meta{
    display:flex;
    justify-content:space-between;
    margin:18px 0;
    color:#64748b;
    font-size:.9rem;
} 

.course-progress{
    margin:20px 0;
}

.progress-bar{
    width:100%;
    height:10px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:10px;
}

.progress-fill{
    height:100%;
    background:#2563eb;
    border-radius:20px;
}

.course-progress span{
    font-size:.85rem;
    color:#475569;
}

.coming-soon{
    background:#d1d5db !important;
    color:#374151 !important;
    cursor:not-allowed;
}
/* ==========================================
   COURSE PLAYER
========================================== */

.player-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:32px;
    margin-top:40px;
}

.video-player{
    background:#ffffff;
    border-radius:16px;
    padding:28px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.video-placeholder{
    width:100%;
    height:420px;
    background:linear-gradient(135deg,#0f172a,#1e3a8a);
    border-radius:16px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:5rem;
    margin-bottom:24px;
}

.video-player h2{
    color:#0f172a;
    margin-bottom:16px;
}

.video-player p{
    color:#64748b;
    line-height:1.7;
    margin-bottom:28px;
}

.lesson-controls{
    display:flex;
    justify-content:space-between;
    gap:16px;
}

.course-outline{
    background:#ffffff;
    border-radius:16px;
    padding:28px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    height:fit-content;
}

.course-outline h3{
    margin-bottom:20px;
    color:#0f172a;
}

.course-outline ul{
    list-style:none;
    padding:0;
    margin:0;
}

.course-outline li{
    padding:14px 12px;
    border-radius:10px;
    margin-bottom:10px;
    color:#475569;
    cursor:pointer;
    transition:.25s;
}

.course-outline li:hover{
    background:#eef4ff;
}

.course-outline li.active{
    background:#2563eb;
    color:#ffffff;
    font-weight:600;
}

@media(max-width:900px){

.player-layout{
    grid-template-columns:1fr;
}

.video-placeholder{
    height:240px;
}

.lesson-controls{
    flex-direction:column;
}

/* ==========================================
   COURSE PROGRESS
========================================== */

.course-progress-card{
    margin:28px 0;
}

.course-progress-card h3{
    margin-bottom:14px;
    color:#0f172a;
}

.lesson-meta{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:28px;
    color:#64748b;
    font-size:.9rem;
}

.lesson-meta span{
    background:#f1f5f9;
    padding:8px 14px;
    border-radius:30px;
}/* ==========================================
   COURSE RESOURCES
========================================== */

.resource-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:18px;
}
.course-outline hr{
    margin:28px 0;
    border:none;
    border-top:1px solid #e5e7eb;

}
/* ==========================================
   LESSON OBJECTIVES
========================================== */

.lesson-objectives{
    margin:32px 0;
    background:#f8fafc;
    border-left:5px solid #2563eb;
    padding:22px;
    border-radius:12px;
}

.lesson-objectives h3{
    margin-top:0;
    color:#0f172a;
}

.lesson-objectives ul{
    margin:18px 0 0;
    padding-left:20px;
}

.lesson-objectives li{
    margin-bottom:12px;
    color:#475569;
}/* ==========================================
   LESSON CONTENT
========================================== */

.lesson-content{
    margin-top:40px;
}

.lesson-content h3{
    color:#0f172a;
    margin:30px 0 16px;
}

.lesson-content p{
    color:#475569;
    line-height:1.9;
    margin-bottom:20px;
    font-size:1.02rem;
}/* ==========================================
   LESSON TAKEAWAYS
========================================== */

.lesson-takeaways{
    margin-top:40px;
    background:#eef6ff;
    border-left:5px solid #2563eb;
    border-radius:14px;
    padding:24px;
}

.lesson-takeaways h3{
    margin-top:0;
    color:#0f172a;
}

.lesson-takeaways ul{
    margin-top:18px;
    padding-left:22px;
}

.lesson-takeaways li{
    margin-bottom:14px;
    line-height:1.8;
    color:#334155;
}/* ==========================================
   AI PROMPT PRACTICE
========================================== */

.prompt-practice{
    margin-top:40px;
}

.prompt-practice h3{
    color:#0f172a;
    margin-bottom:18px;
}

.prompt-box{
    background:#0f172a;
    color:#ffffff;
    padding:24px;
    border-radius:14px;
    margin:20px 0;
    line-height:1.8;
}

.prompt-box strong{
    color:#facc15;
    display:block;
    margin-bottom:12px;
}/* ==========================================
   LESSON SUMMARY
========================================== */

.lesson-summary{
    margin-top:40px;
    background:#f8fafc;
    border-radius:14px;
    padding:28px;
    border-left:5px solid #16a34a;
}

.lesson-summary h3{
    margin-top:0;
    color:#0f172a;
}

.lesson-summary p{
    line-height:1.9;
    color:#475569;
}/* ==========================================
   LESSON QUIZ
========================================== */

.lesson-quiz{
    margin-top:40px;
    background:#ffffff;
    border-radius:16px;
    padding:28px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.lesson-quiz h3{
    margin-top:0;
    color:#0f172a;
}

.lesson-quiz label{
    display:block;
    margin-bottom:12px;
    color:#475569;
    cursor:pointer;
}

.lesson-quiz input{
    margin-right:10px;
}
/* ==========================================
   LESSON RESOURCES
========================================== */

.lesson-resources{
    margin-top:40px;
    background:#ffffff;
    border-radius:16px;
    padding:28px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.lesson-resources h3{
    margin-top:0;
    margin-bottom:12px;
    color:#0f172a;
}

.lesson-resources p{
    color:#64748b;
    line-height:1.7;
    margin-bottom:24px;
}

.resource-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.lesson-resources .resource-item{
    display:block;
    width:100%;
    padding:16px 20px;
    background:#eef6ff;
    color:#2563eb !important;
    border:2px solid #2563eb;
    border-radius:10px;
    text-decoration:none !important;
    font-weight:700;
    cursor:pointer;
    transition:all .25s ease;
}

.lesson-resources .resource-item:hover{
    background:#2563eb;
    color:#ffffff !important;
    border-color:#2563eb;
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(37,99,235,.18);
}
