/* ==========================================================================
   STUDENT, INSTRUCTOR & ADMIN DASHBOARD STYLES
   ========================================================================== */

.dashboard-shell {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--light-background);
}

.dashboard-shell + .teachr-footer {
    margin-top: 0;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    width: 240px;
    background-color: var(--dark-bg);
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #3e4143;
}

.dashboard-sidebar-header {
    padding: 20px 20px 14px;
    border-bottom: 1px solid #3e4143;
}

.dashboard-sidebar-nav {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.dashboard-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #d1d7dc;
    font-size: 14px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background-color 0.15s, color 0.15s;
}

.dashboard-sidebar-nav a:hover {
    background-color: var(--dark-surface);
    color: var(--white);
}

.dashboard-sidebar-nav a.active {
    background-color: var(--dark-surface);
    color: var(--white);
    border-left-color: var(--primary-color);
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
}

/* Dashboard Cards & Tables */
.stat-metric-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 20px;
    height: 100%;
}

.stat-metric-label {
    font-size: 13px;
    color: var(--muted-color);
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-metric-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
}

.dashboard-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.teachr-table {
    margin-bottom: 0;
    font-size: 14px;
}

.teachr-table thead th {
    background-color: var(--light-background);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
    font-weight: 700;
    font-size: 13px;
    padding: 12px;
}

.teachr-table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* ==========================================================================
   STUDENT VIDEO LEARNING INTERFACE
   ========================================================================== */
.learning-topbar {
    background-color: var(--dark-bg);
    color: var(--white);
    height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3e4143;
}

.learning-workspace {
    display: grid;
    grid-template-columns: 1fr 360px;
    min-height: calc(100vh - 56px);
}

.learning-player-column {
    background: var(--white);
    min-width: 0;
}

.video-player-stage {
    background: #000000;
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 540px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.video-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 16px 20px 12px;
}

.video-progress-bar-wrap {
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    cursor: pointer;
}

.video-progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    width: 35%;
}

.learning-curriculum-sidebar {
    border-left: 1px solid var(--border-color);
    background: var(--white);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.learning-lecture-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #eef1f3;
    cursor: pointer;
    font-size: 13px;
}

.learning-lecture-item:hover {
    background: var(--light-background);
}

.learning-lecture-item.active {
    background: #e8e9eb;
    font-weight: 700;
}

/* ==========================================================================
   INSTRUCTOR WIZARD & CURRICULUM BUILDER
   ========================================================================== */
.wizard-steps-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.wizard-step-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--muted-color);
    cursor: pointer;
}

.wizard-step-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.wizard-step-pill.done {
    background: #e9f5ee;
    border-color: var(--success-color);
    color: var(--success-color);
}

.curriculum-builder-section {
    border: 1px solid var(--border-color);
    background: var(--light-background);
    padding: 16px;
    margin-bottom: 16px;
}

.curriculum-builder-lecture {
    border: 1px solid var(--border-color);
    background: var(--white);
    padding: 12px 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drag-handle {
    cursor: grab;
    color: var(--muted-color);
}

/* Teachr Course Management Studio */
.course-studio-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.studio-nav-group-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    padding: 12px 12px 6px;
}

.studio-nav-item {
    width: 100%;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
}

.studio-nav-item:hover {
    background: var(--light-background);
}

.studio-nav-item.active {
    border-left-color: var(--primary-color);
    font-weight: 700;
    background: var(--light-background);
}

.studio-check-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.studio-check-circle.done {
    background: var(--text-color);
    color: var(--white);
}

@media (max-width: 991px) {
    .course-studio-grid {
        grid-template-columns: 1fr;
    }
}

/* Teachr Curriculum Builder */
.teachr-curr-section {
    border: 1px solid var(--text-color);
    background: var(--light-background);
    padding: 16px;
    margin-bottom: 20px;
}

.teachr-curr-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.teachr-curr-item {
    border: 1px solid var(--text-color);
    background: var(--white);
    margin-bottom: 10px;
}

.teachr-curr-item-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
}

.teachr-curr-drawer {
    border-top: 1px solid var(--border-color);
    background: #fafafa;
    padding: 14px;
    display: none;
}

.teachr-curr-add-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px dashed var(--border-color);
    background: var(--white);
    padding: 8px 12px;
    margin-top: 6px;
}
