/* Frontend Course Generator Styles - Beautiful Professional Design */

.ccg-course-generator {
    width: 100%;
    margin: 0;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen", Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ccg-course-generator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.ccg-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    position: relative;
}

.ccg-header h2 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ccg-welcome {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Top Navigation (Horizontal Layout) */
.ccg-top-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.ccg-nav-horizontal {
    display: flex;
    gap: 15px;
}

.ccg-nav-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 140px; /* Ensure enough space for text + count */
}

.ccg-nav-tab:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.ccg-nav-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.ccg-nav-tab .ccg-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.ccg-course-count {
    background: rgba(255, 255, 255, 0.3);
    color: currentColor;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    margin-left: auto;
    flex-shrink: 0;
}

.ccg-nav-tab.active .ccg-course-count {
    background: rgba(255, 255, 255, 0.4);
    color: white;
}

/* User Info (Horizontal) */
.ccg-user-info-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.ccg-user-info-horizontal .ccg-avatar {
    flex-shrink: 0;
}

.ccg-user-info-horizontal .ccg-avatar img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.ccg-user-info-horizontal .ccg-user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.ccg-user-info-horizontal .ccg-user-details strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.ccg-user-info-horizontal .ccg-user-details small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
}

/* Full Width Content Container */
.ccg-main-content-full {
    position: relative;
    z-index: 1;
}

.ccg-main-container {
    display: flex;
    gap: 30px;
    min-height: 600px;
    position: relative;
}

/* Sidebar with Glass Effect */
.ccg-sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ccg-nav {
    margin-bottom: 30px;
}

.ccg-nav-btn {
    display: block;
    width: 100%;
    padding: 18px 24px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.ccg-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ccg-nav-btn:hover::before {
    left: 100%;
}

.ccg-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.ccg-nav-btn.active {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #333;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.ccg-icon {
    margin-right: 12px;
    font-size: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.ccg-nav-btn:hover .ccg-icon {
    transform: scale(1.1) rotate(5deg);
}

.ccg-course-count {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ccg-nav-btn.active .ccg-course-count {
    background: linear-gradient(135deg, #333, #666);
}

.ccg-user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.ccg-avatar {
    margin-right: 15px;
}

.ccg-avatar img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ccg-user-details strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.ccg-user-details small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Content Area with Glass Effect */
.ccg-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ccg-view {
    display: none;
}

.ccg-view.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Generator View */
.ccg-generator-header {
    text-align: center;
    margin-bottom: 25px;
}

.ccg-generator-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.ccg-generator-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Course Form */
.ccg-course-form {
    margin-bottom: 20px;
}

.ccg-form-group {
    margin-bottom: 20px;
}

.ccg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.ccg-form-group textarea {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ccg-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), inset 0 2px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.ccg-form-row {
    display: flex;
    gap: 25px;
}

.ccg-form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ccg-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.ccg-form-actions {
    text-align: center;
    margin-top: 25px;
}

.ccg-btn {
    padding: 18px 36px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.ccg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.ccg-btn:hover::before {
    left: 100%;
}

.ccg-btn-primary {
    background: linear-gradient(135deg, #000000, #2c2c2c) !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.ccg-btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a, #404040) !important;
    color: #ffffff !important;
    border-color: #1a1a1a !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.ccg-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.ccg-btn-icon {
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.ccg-btn:hover .ccg-btn-icon {
    transform: translateX(3px);
}

/* Example Prompts */
.ccg-examples {
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.ccg-examples h4 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
}

.ccg-example-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ccg-example-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.ccg-example-btn:hover {
    background: linear-gradient(135deg, #000000, #2c2c2c) !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Progress */
.ccg-progress {
    margin: 40px 0;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.ccg-progress-bar {
    width: 100%;
    max-width: 500px;
    height: 12px;
    background: rgba(226, 232, 240, 0.8);
    border-radius: 6px;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ccg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: progressShimmer 2s ease-in-out infinite;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ccg-progress-text {
    color: #64748b;
    font-weight: 600;
    margin: 15px 0 0 0;
    font-size: 16px;
}

/* Course Cards - Professional Horizontal Layout */
.ccg-course-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ccg-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.ccg-course-info {
    flex: 1;
    padding-right: 30px;
}

.ccg-course-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ccg-course-title {
    margin: 0 15px 0 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.ccg-course-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ccg-lesson-count,
.ccg-creation-date {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
}

.ccg-course-description {
    margin: 15px 0 0 0;
    color: #64748b;
    line-height: 1.5;
    font-size: 15px;
}

.ccg-course-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ccg-btn-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(10px);
}

.ccg-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3) !important;
}

.ccg-btn-secondary {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #2c3e50 !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    backdrop-filter: blur(10px);
}

.ccg-btn-secondary:hover {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
}

.ccg-btn-text {
    margin-right: 8px;
}

.ccg-btn-icon {
    margin-left: 0;
}

/* Ensure lesson action buttons don't wrap text and have proper spacing */
.ccg-lesson-actions .ccg-btn {
    white-space: nowrap;
}

.ccg-lesson-actions .ccg-btn .ccg-btn-text {
    margin-right: 6px;
}

/* Lesson Cards - Professional Horizontal Layout */
.ccg-lessons-list {
    margin-top: 30px;
}

.ccg-lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ccg-lesson-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.ccg-lesson-item.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.ccg-lesson-info {
    flex: 1;
    padding-right: 30px;
}

.ccg-lesson-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ccg-lesson-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    width: 35px;
    min-width: 35px;
    height: 35px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.ccg-lesson-item.completed .ccg-lesson-number {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ccg-lesson-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.ccg-lesson-preview {
    margin: 8px 0 0 0;
    color: #64748b;
    line-height: 1.5;
    font-size: 14px;
}

.ccg-lesson-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ccg-btn-complete {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: 2px solid #10b981 !important;
    min-width: 140px;
}

.ccg-btn-complete:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4) !important;
}

.ccg-btn-complete.completed {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    border-color: #6b7280 !important;
}

.ccg-btn-complete.completed:hover {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4) !important;
}

/* Ensure main container has the gradient background */
body .ccg-course-generator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    min-height: 600px;
}

/* Two-Panel Layout for Course Details */
.ccg-course-header-with-back {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ccg-back-to-courses {
    flex-shrink: 0;
    margin-top: 5px;
}

.ccg-course-title-section {
    flex: 1;
    min-width: 300px;
}

.ccg-course-title-section h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.ccg-course-title-section p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.ccg-two-panel-layout {
    display: flex;
    gap: 30px;
    /* Remove min-height to allow dynamic sizing */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Left Panel - Lessons Sidebar */
.ccg-lessons-sidebar {
    flex: 0 0 350px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    padding: 20px;
    border-right: 2px solid rgba(226, 232, 240, 0.5);
}

.ccg-lessons-sidebar h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.ccg-lessons-navigation {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Lesson Navigation Items - Tighter Spacing */
.ccg-lesson-nav-item {
    margin-bottom: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.ccg-lesson-nav-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.ccg-lesson-nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.ccg-lesson-nav-item.completed {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.4);
    border-width: 2px;
    border-style: solid;
}

.ccg-lesson-nav-item.completed.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.6);
}

.ccg-lesson-nav-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    width: 100%;
}

.ccg-lesson-nav-item .ccg-lesson-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ccg-lesson-nav-item.completed .ccg-lesson-number {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ccg-lesson-nav-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow text to wrap */
    padding-right: 0; /* Remove padding since we removed the corner button */
}

.ccg-lesson-nav-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ccg-lesson-complete-corner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.ccg-lesson-nav-actions {
    flex-shrink: 0;
}

.ccg-btn-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ccg-btn-mini:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
    color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.ccg-btn-mini.completed {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.ccg-btn-mini.completed:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Right Panel - Lesson Content */
.ccg-lesson-content-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 25px;
    /* Remove flex-direction and height constraints to allow natural content flow */
}

/* Course Title Header in Right Panel */
.ccg-course-title-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.ccg-course-title-display {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.ccg-lesson-content-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccg-current-lesson-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    flex: 1;
}

.ccg-lesson-complete-header {
    flex-shrink: 0;
    margin-left: 20px;
}

.ccg-btn-complete {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ccg-btn-complete:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ccg-btn-completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ccg-btn-completed:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Ensure text stays white in both states */
.ccg-btn-complete .ccg-complete-text,
.ccg-btn-completed .ccg-complete-text {
    color: white !important;
}

.ccg-lesson-content-body {
    /* Remove flex: 1 and position: relative to allow natural content flow */
}

.ccg-lesson-content-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
    font-style: italic;
}

.ccg-lesson-content-display {
    color: #475569;
    line-height: 1.7;
    font-size: 16px;
    /* Remove max-height and overflow to allow dynamic sizing */
    padding-right: 15px;
}

/* Apply rich content styles to panel content */
.ccg-lesson-content-display h1,
.ccg-lesson-content-display h2,
.ccg-lesson-content-display h3,
.ccg-lesson-content-display h4,
.ccg-lesson-content-display h5,
.ccg-lesson-content-display h6 {
    color: #1e293b;
    font-weight: 700;
    margin: 25px 0 15px 0;
    line-height: 1.3;
}

.ccg-lesson-content-display h1 { font-size: 24px; }
.ccg-lesson-content-display h2 { font-size: 22px; }
.ccg-lesson-content-display h3 { font-size: 20px; }
.ccg-lesson-content-display h4 { font-size: 18px; }

.ccg-lesson-content-display p {
    margin: 15px 0;
    line-height: 1.7;
}

.ccg-lesson-content-display ul,
.ccg-lesson-content-display ol {
    margin: 15px 0;
    padding-left: 25px;
}

.ccg-lesson-content-display li {
    margin: 8px 0;
    line-height: 1.6;
}

.ccg-lesson-content-display a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ccg-lesson-content-display a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ccg-lesson-content-display img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ccg-lesson-content-display blockquote {
    margin: 20px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.ccg-lesson-content-display pre,
.ccg-lesson-content-display code {
    background: rgba(71, 85, 105, 0.1);
    border-radius: 5px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.ccg-lesson-content-display pre {
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.ccg-lesson-content-display code {
    padding: 2px 6px;
}

/* YouTube embeds and file downloads work the same in panel */
.ccg-lesson-content-display .ccg-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 25px 0;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.ccg-lesson-content-display .ccg-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 15px;
}

.ccg-lesson-content-display .ccg-file-download {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transition: all 0.3s ease;
}

.ccg-lesson-content-display .ccg-file-download:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* Custom scrollbar for lesson navigation and content */
.ccg-lessons-navigation::-webkit-scrollbar,
.ccg-lesson-content-display::-webkit-scrollbar {
    width: 8px;
}

.ccg-lessons-navigation::-webkit-scrollbar-track,
.ccg-lesson-content-display::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 4px;
}

.ccg-lessons-navigation::-webkit-scrollbar-thumb,
.ccg-lesson-content-display::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.ccg-lessons-navigation::-webkit-scrollbar-thumb:hover,
.ccg-lesson-content-display::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* Responsive design for two-panel layout */
@media (max-width: 1024px) {
    .ccg-two-panel-layout {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .ccg-lessons-sidebar {
        flex: none;
        max-height: 300px;
    }
    
    .ccg-lessons-navigation {
        max-height: 200px;
    }
    
    .ccg-lesson-content-panel {
        /* Remove min-height to allow natural content flow on mobile */
    }
    
    .ccg-lesson-content-display {
        /* Remove max-height to allow full content display on mobile */
    }
}

@media (max-width: 768px) {
    /* Top Navigation Responsive */
    .ccg-top-navigation {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .ccg-nav-horizontal {
        width: 100%;
        justify-content: center;
    }
    
    .ccg-nav-tab {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
    
    .ccg-user-info-horizontal {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .ccg-user-info-horizontal .ccg-user-details {
        align-items: center;
        text-align: center;
    }
    
    .ccg-course-generator {
        padding: 15px;
    }
    
    .ccg-view {
        padding: 25px;
    }
    
    /* Two-panel responsive */
    .ccg-course-header-with-back {
        flex-direction: column;
        gap: 15px;
    }
    
    .ccg-course-title-section {
        min-width: auto;
    }
    
    .ccg-course-title-section h3 {
        font-size: 24px;
    }
    
    .ccg-two-panel-layout {
        padding: 15px;
        gap: 15px;
    }
    
    .ccg-lessons-sidebar,
    .ccg-lesson-content-panel {
        padding: 20px;
    }
    
    .ccg-lesson-nav-content {
        gap: 12px;
    }
    
    .ccg-lesson-nav-info h6 {
        font-size: 14px;
    }
    
    .ccg-current-lesson-title {
        font-size: 20px;
    }
}

/* Remove old lesson overlay styles since we're using panels */
/*
.ccg-lesson-overlay {
    display: none;
}
*/

/* Course Details Progress Section */
.ccg-progress-section {
    margin: 25px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ccg-progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.ccg-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.ccg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.6s ease;
    border-radius: 6px;
}

/* Empty States */
.ccg-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.ccg-empty-state h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.ccg-empty-state p {
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive adjustments for cards */
@media (max-width: 768px) {
    .ccg-course-card,
    .ccg-lesson-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .ccg-course-info,
    .ccg-lesson-info {
        padding-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .ccg-course-actions,
    .ccg-lesson-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .ccg-lesson-header {
        width: 100%;
    }
    
    .ccg-course-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Results */
.ccg-result {
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
    backdrop-filter: blur(20px);
}

.ccg-generated-course {
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading Overlay */
.ccg-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.ccg-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ccg-loading-overlay p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Notifications */
.ccg-notifications {
    position: fixed;
    top: 60px;
    right: 30px;
    z-index: 1001;
    max-width: 400px;
}

.ccg-notification {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-left: 6px solid #667eea;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: notificationSlide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.ccg-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ccg-notification-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.ccg-notification-success::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.ccg-notification-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fef7f7);
}

.ccg-notification-error::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
}

@keyframes notificationSlide {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ccg-main-container {
        flex-direction: column;
    }
    
    .ccg-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .ccg-nav {
        display: flex;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .ccg-nav-btn {
        flex: 1;
        margin-bottom: 0;
        text-align: center;
        padding: 15px 10px;
    }
    
    .ccg-course-count {
        position: static;
        transform: none;
        margin-left: 8px;
        display: inline-block;
    }
    
    .ccg-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .ccg-course-generator {
        padding: 10px;
        border-radius: 15px;
        margin: 0;
    }
    
    .ccg-header {
        padding: 30px 0;
    }
    
    .ccg-header h2 {
        font-size: 2em;
    }
    
    .ccg-form-row {
        flex-direction: column;
    }
    
    .ccg-example-buttons {
        flex-direction: column;
    }
    
    .ccg-example-btn {
        border-radius: 12px;
    }
    
    .ccg-content {
        padding: 25px 15px;
    }
    
    .ccg-btn {
        width: 100%;
        justify-content: center;
        padding: 20px;
    }
    
    .ccg-notifications {
        left: 15px;
        right: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .ccg-nav {
        flex-direction: column;
    }
    
    .ccg-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .ccg-avatar {
        margin: 0 0 15px 0;
    }
    
    .ccg-sidebar {
        padding: 20px;
    }
    
    .ccg-examples {
        padding: 20px;
    }
}

/* Lesson Overlay */
.ccg-lesson-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
}

.ccg-overlay-content {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: overlaySlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes overlaySlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ccg-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ccg-close-button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.ccg-lesson-title {
    margin: 0 50px 25px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.ccg-lesson-content {
    color: #475569;
    line-height: 1.7;
    font-size: 16px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Rich Content Styles for Lesson Content */
.ccg-lesson-content h1,
.ccg-lesson-content h2,
.ccg-lesson-content h3,
.ccg-lesson-content h4,
.ccg-lesson-content h5,
.ccg-lesson-content h6 {
    color: #1e293b;
    font-weight: 700;
    margin: 25px 0 15px 0;
    line-height: 1.3;
}

.ccg-lesson-content h1 { font-size: 24px; }
.ccg-lesson-content h2 { font-size: 22px; }
.ccg-lesson-content h3 { font-size: 20px; }
.ccg-lesson-content h4 { font-size: 18px; }

.ccg-lesson-content p {
    margin: 15px 0;
    line-height: 1.7;
}

.ccg-lesson-content ul,
.ccg-lesson-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.ccg-lesson-content li {
    margin: 8px 0;
    line-height: 1.6;
}

.ccg-lesson-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ccg-lesson-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ccg-lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ccg-lesson-content blockquote {
    margin: 20px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.ccg-lesson-content pre,
.ccg-lesson-content code {
    background: rgba(71, 85, 105, 0.1);
    border-radius: 5px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.ccg-lesson-content pre {
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.ccg-lesson-content code {
    padding: 2px 6px;
}

/* YouTube Video Embeds */
.ccg-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 25px 0;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.ccg-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 15px;
}

/* File Download Links */
.ccg-file-download {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ccg-file-download:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ccg-file-icon {
    font-size: 24px;
    margin-right: 12px;
    vertical-align: middle;
}

.ccg-file-download strong {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    vertical-align: middle;
}

.ccg-file-type {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-left: 12px !important;
    vertical-align: middle;
}

.ccg-file-download p {
    margin: 10px 0 0 36px !important;
    font-size: 14px !important;
    color: #64748b !important;
    font-style: italic;
}

/* Tables in lesson content */
.ccg-lesson-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ccg-lesson-content th,
.ccg-lesson-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.ccg-lesson-content th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 700;
    color: #1e293b;
}

.ccg-lesson-content tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

/* Custom scrollbar for lesson content */
.ccg-lesson-content::-webkit-scrollbar {
    width: 8px;
}

.ccg-lesson-content::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 4px;
}

.ccg-lesson-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.ccg-lesson-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* Responsive adjustments for overlay */
@media (max-width: 768px) {
    .ccg-overlay-content {
        margin: 20px;
        padding: 25px;
        max-width: none;
    }
    
    .ccg-lesson-title {
        font-size: 24px;
        margin-right: 40px;
    }
    
    .ccg-close-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .ccg-video-embed {
        margin: 20px -25px; /* Extend to overlay edges on mobile */
        border-radius: 0;
    }
    
    .ccg-file-download {
        margin: 15px -25px; /* Extend to overlay edges on mobile */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}