/*///////// TEACHER APP SHELL ////////////*/
.teacher-app-shell {
    display: flex;
    min-height: 100vh;
}

.teacher-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.teacher-content {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
}

/*///////// TEACHER DASHBOARD ////////////*/    
	.teacher-app-shell {
        display: flex;
        min-height: 100vh;
        background: #f5f5f5;
    }

    .teacher-sidebar {
        width: 250px;
        background: #ffffff;
        border-right: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 1030;
    }

    .teacher-sidebar-brand {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #eef0f2;
    }

    .teacher-sidebar-brand a {
        text-decoration: none;
        font-size: 2rem;
        font-weight: 800;
        color: #5f249f;
        line-height: 1;
    }

    .teacher-sidebar-section {
        padding: 0.75rem 0.75rem 0;
    }

    .teacher-sidebar-link,
    .teacher-sidebar-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.8rem 0.9rem;
        border-radius: 0.75rem;
        text-decoration: none;
        color: #1f2937;
        border: 0;
        background: transparent;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .teacher-sidebar-link:hover,
    .teacher-sidebar-toggle:hover {
        background: #f3f4f6;
        color: #111827;
    }

    .teacher-sidebar-link.active,
    .teacher-sidebar-toggle.active {
        background: #5f249f;
        color: #ffffff;
    }

    .teacher-sidebar-link i,
    .teacher-sidebar-toggle i {
        font-size: 1rem;
        width: 18px;
        text-align: center;
    }

    .teacher-sidebar-subnav {
        padding-left: 2.65rem;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .teacher-sidebar-subnav a {
        display: block;
        padding: 0.45rem 0.25rem;
        text-decoration: none;
        color: #374151;
        font-size: 0.95rem;
        border-radius: 0.5rem;
    }

    .teacher-sidebar-subnav a:hover {
        color: #111827;
        background: #f9fafb;
    }

    .teacher-sidebar-subnav a.active {
        color: #5f249f;
        font-weight: 700;
        background: #f3e8ff;
    }

    .teacher-sidebar-footer {
        margin-top: auto;
        padding: 1rem 1rem 1.25rem;
        border-top: 1px solid #eef0f2;
    }

    .teacher-user-chip {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 0.95rem;
        background: #f9fafb;
        border-radius: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .teacher-user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #5f249f;
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .teacher-user-meta {
        min-width: 0;
    }

    .teacher-user-name {
        font-weight: 700;
        color: #111827; 
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .teacher-user-role {
        color: #6b7280;
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .teacher-logout-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.7rem 0.9rem;
        border-radius: 0.75rem;
        text-decoration: none;
        border: 1px solid #d1d5db;
        color: #374151;
        background: #ffffff;
        font-weight: 600;
    }

    .teacher-logout-btn:hover {
        background: #f9fafb;
        color: #111827;
    }

    @media (max-width: 991.98px) {
        .teacher-sidebar {
            width: 100%;
            height: auto;
            position: relative;
            border-right: 0;
            border-bottom: 1px solid #e5e7eb;
        }

        .teacher-app-shell {
            display: block;
            min-height: auto;
        }
    }