/* Course Creator Sidebar Consistency Fix */

/* Ensure consistent sidebar width across all course creator pages */
.course-creator-sidebar {
    width: 100%;
    max-width: 280px;
    min-width: 250px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 1);
}

/* Prevent sidebar from overlapping content and ensure proper z-index */
@media (max-width: 1023px) {
    .course-creator-sidebar {
        position: fixed;
        top: 72px; /* Account for navbar height */
        left: 0;
        height: calc(100vh - 72px);
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .course-creator-sidebar.show {
        transform: translateX(0);
    }
    
    /* Overlay for mobile */
    .sidebar-overlay {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 35;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Grid layout consistency */
.course-creator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 96rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 72px); /* Account for navbar */
    background-color: #f9fafb;
}

@media (min-width: 1024px) {
    .course-creator-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Ensure sidebar content doesn't overflow */
.course-creator-sidebar .bg-white {
    width: 100%;
    overflow: hidden;
}

/* Main content area styling */
.course-creator-content {
    min-width: 0; /* Prevent flex overflow */
    width: 100%;
}

/* Fix for specific pages that might have layout issues */
.course-creator-layout .lg\:col-span-1 {
    grid-column: 1;
}

.course-creator-layout .lg\:col-span-3 {
    grid-column: 2;
}

@media (max-width: 1023px) {
    .course-creator-layout .lg\:col-span-1,
    .course-creator-layout .lg\:col-span-3 {
        grid-column: 1;
    }
}

/* Ensure consistent styling for all course creator pages */
.course-creator-page {
    background-color: #f9fafb;
    min-height: 100vh;
}

.course-creator-page .container {
    max-width: 96rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Card styling consistency */
.course-creator-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 1);
    overflow: hidden;
}

.course-creator-card-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(229, 231, 235, 1);
}

.course-creator-card-content {
    padding: 2rem;
}
