﻿/* ============================================
   COURSE BUILDER - Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */

.builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.header-left h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

/* Steps */
.steps-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.step-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.step.active .step-number {
    background: #4f46e5;
    color: white;
}

.step.active .step-label {
    color: #4f46e5;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step.completed .step-label {
    color: #10b981;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-draft {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-draft:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-publish {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.builder-main {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   FORM CARDS
   ============================================ */

.form-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.url-preview {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

#courseSlug {
    color: #4f46e5;
}

/* Rich Editor */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.editor-toolbar button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s;
}

.editor-toolbar button:hover {
    background: #e5e7eb;
    color: #1e293b;
}

.editor-toolbar .separator {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 8px;
}

.rich-editor {
    min-height: 200px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 500px;
}

.rich-editor:focus {
    outline: none;
    border-color: #4f46e5;
}

.rich-editor:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
}

/* ============================================
   OPTIONS TABS
   ============================================ */

.options-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.tab-btn.active {
    background: #eef2ff;
    color: #4f46e5;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-item.compact {
    padding: 8px 0;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.toggle-hint {
    font-size: 12px;
    color: #9ca3af;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7eb;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #4f46e5;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ============================================
   IMAGE UPLOAD
   ============================================ */

.image-upload {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.2s;
}

.image-upload:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.upload-placeholder svg {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: #e5e7eb;
}

.upload-placeholder small {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-preview {
    max-width: 100%;
    border-radius: 8px;
}

.image-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.image-actions {
    display: flex;
    gap: 10px;
}

.btn-change-image,
.btn-remove-image {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-image {
    background: #4f46e5;
    color: white;
}

.btn-change-image:hover {
    background: #4338ca;
}

.btn-remove-image {
    background: #fee2e2;
    color: #dc2626;
}

.btn-remove-image:hover {
    background: #fecaca;
}

/* ============================================
   VIDEO INPUT
   ============================================ */

.add-video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    color: #4f46e5;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-video-btn:hover {
    background: #eef2ff;
    border-color: #4f46e5;
}

/* ============================================
   PRICING
   ============================================ */

.pricing-options {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
}

.radio-label {
    font-size: 14px;
    color: #374151;
}

.price-field {
    position: relative;
}

.price-field input {
    width: 100%;
    padding: 12px 14px;
    padding-right: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
}

.price-field .currency {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

/* ============================================
   CATEGORIES & TAGS
   ============================================ */

.search-input {
    position: relative;
    margin-bottom: 12px;
}

.search-input svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.checkbox-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.checkbox-option:hover {
    background: #f8fafc;
}

.checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
}

.checkbox-option span {
    font-size: 14px;
    color: #374151;
    flex: 1;
}

/* Bouton supprimer catégorie */
.delete-category-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.2s;
    margin-left: auto;
}

.checkbox-option:hover .delete-category-btn {
    opacity: 1;
}

.delete-category-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.add-link {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.add-link:hover {
    text-decoration: underline;
}

/* Tags */
.tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 44px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #eef2ff;
    border-radius: 20px;
    font-size: 13px;
    color: #4f46e5;
}

.tag button {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.tags-input input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-prev, .btn-next {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev {
    background: white;
    border: 1px solid #e5e7eb;
    color: #475569;
}

.btn-prev:hover {
    background: #f8fafc;
}

.btn-next {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    color: white;
}

.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Placeholder */
.placeholder-content {
    background: white;
    border-radius: 12px;
    padding: 60px;
    text-align: center;
}

.placeholder-content h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 12px;
}

.placeholder-content p {
    color: #64748b;
    margin-bottom: 30px;
}

/* Last update */
.last-update {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.schedule-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .side-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .builder-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .steps-container {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .side-column {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* iPhone 13 Pro Max et mobiles */
@media (max-width: 480px) {
    .builder-header {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .back-btn span {
        display: none;
    }
    
    .builder-header h1 {
        font-size: 1.1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .header-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .steps-container {
        overflow-x: auto;
        padding: 10px 0;
        gap: 8px;
    }
    
    .step {
        min-width: 90px;
        padding: 8px 12px;
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .step-title {
        font-size: 10px;
    }
    
    .builder-content {
        padding: 15px;
    }
    
    .content-layout {
        gap: 15px;
    }
    
    .main-column,
    .side-column {
        padding: 15px;
        border-radius: 12px;
    }
    
    .side-column {
        grid-template-columns: 1fr !important;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Image upload */
    .image-upload-area {
        padding: 20px;
    }
    
    .upload-placeholder {
        gap: 10px;
    }
    
    .upload-placeholder svg {
        width: 36px;
        height: 36px;
    }
    
    .upload-placeholder p {
        font-size: 13px;
    }
    
    /* Modules */
    .module-item {
        padding: 12px;
    }
    
    .module-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .module-title {
        font-size: 14px;
    }
    
    .module-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .module-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Lessons */
    .lesson-item {
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .lesson-info {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .lesson-title {
        font-size: 13px;
    }
    
    .lesson-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px 0;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Price inputs */
    .price-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-input {
        width: 100%;
    }
    
    /* Video input */
    .video-input-container {
        flex-direction: column;
    }
    
    .video-input-container input {
        width: 100%;
    }
    
    /* Publish section */
    .publish-section {
        padding: 15px;
    }
    
    .btn-publish {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================
   PARTIE 2 - PROGRAMME
   ============================================ */

.program-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.back-link {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.back-link:hover {
    background: #f8fafc;
    color: #334155;
}

.program-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

/* État vide */
.program-empty {
    background: linear-gradient(180deg, #e8f0fe 0%, #f0f5ff 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
}

.empty-illustration {
    margin-bottom: 30px;
}

.program-empty h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.program-empty p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
}

.btn-add-topic {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #4285f4;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-topic:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Liste des sujets */
.program-content {
    margin-bottom: 30px;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topic-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.topic-header:hover {
    background: #f1f5f9;
}

.topic-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topic-drag {
    color: #cbd5e1;
    cursor: grab;
}

.topic-expand {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.2s;
}

.topic-item.expanded .topic-expand {
    transform: rotate(90deg);
}

.topic-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.topic-meta {
    font-size: 13px;
    color: #64748b;
    margin-left: 8px;
}

.topic-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.topic-action-btn:hover {
    background: #e5e7eb;
    color: #334155;
}

.topic-action-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Contenu du sujet */
.topic-content {
    display: none;
    padding: 20px;
}

.topic-item.expanded .topic-content {
    display: block;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.lesson-item, .quiz-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.lesson-item:hover, .quiz-item:hover {
    background: #f1f5f9;
}

.lesson-icon, .quiz-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-icon {
    background: #dbeafe;
    color: #2563eb;
}

.quiz-icon {
    background: #fef3c7;
    color: #d97706;
}

.lesson-info, .quiz-info {
    flex: 1;
}

.lesson-title, .quiz-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.lesson-meta, .quiz-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.lesson-actions, .quiz-actions {
    display: flex;
    gap: 6px;
}

.item-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-action-btn:hover {
    background: #e5e7eb;
    color: #475569;
}

/* Boutons ajouter dans le sujet */
.topic-add-buttons {
    display: flex;
    gap: 12px;
}

.btn-add-lesson, .btn-add-quiz {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px dashed #cbd5e1;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-lesson:hover {
    border-color: #4285f4;
    color: #4285f4;
    background: #f0f7ff;
}

.btn-add-quiz:hover {
    border-color: #d97706;
    color: #d97706;
    background: #fffbeb;
}

/* Bouton ajouter sujet en bas */
.btn-add-topic-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 2px dashed #cbd5e1;
    background: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-topic-bottom:hover {
    border-color: #4285f4;
    color: #4285f4;
    background: #f0f7ff;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content.large {
    max-width: 700px;
}

.modal-content.extra-large {
    max-width: 1100px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.btn-secondary {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-primary {
    padding: 10px 20px;
    background: #4285f4;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #3367d6;
}

/* Contenu leçon */
.lesson-content-type {
    margin-top: 16px;
}

.file-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #4285f4;
    background: #f8fafc;
}

.file-upload-area input {
    display: none;
}

.file-upload-area p {
    color: #64748b;
    font-size: 14px;
}

/* Quiz questions */
.quiz-questions h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.question-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.question-number {
    font-size: 13px;
    font-weight: 600;
    color: #4285f4;
}

.question-type-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 12px;
    margin-left: auto;
    margin-right: 10px;
}

.question-delete {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.question-delete:hover {
    color: #dc2626;
}

.question-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-item input[type="radio"],
.answer-item input[type="checkbox"] {
    accent-color: #10b981;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.answer-item input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
}

.remove-answer-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.remove-answer-btn:hover {
    background: #fee2e2;
}

.add-answer-btn {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
}

.add-answer-btn:hover {
    text-decoration: underline;
}

/* Vrai/Faux */
.truefalse-list {
    flex-direction: row;
    gap: 20px;
}

.answer-item.truefalse {
    padding: 12px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.answer-item.truefalse:hover {
    border-color: #4f46e5;
}

.truefalse-label {
    font-weight: 600;
    font-size: 14px;
}

.truefalse-label.true {
    color: #10b981;
}

.truefalse-label.false {
    color: #dc2626;
}

/* Réponse courte */
.short-answer-section,
.fill-blank-section {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.accepted-answers,
.blanks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accepted-answer-item,
.blank-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accepted-answer-item input,
.blank-item input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
}

.blank-item label {
    font-size: 12px;
    color: #64748b;
    min-width: 60px;
}

/* Section ajouter question */
.add-question-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e5e7eb;
}

.add-question-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.question-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-question-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-question-type:hover {
    border-color: #4f46e5;
    background: #f0f4ff;
}

.btn-question-type .type-icon {
    font-size: 20px;
    color: #4f46e5;
}

.btn-question-type .type-label {
    font-size: 11px;
    color: #374151;
}

.btn-add-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-question:hover {
    border-color: #4285f4;
    color: #4285f4;
    background: #f0f7ff;
}

/* ============================================
   LESSON MODAL - ENHANCED DESIGN
   ============================================ */

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header-info h3 {
    margin: 0;
}

.modal-topic-name {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.lesson-modal-body {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.lesson-main-column {
    flex: 1;
    min-width: 0;
}

.lesson-side-column {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lesson-name-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}

.lesson-name-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.ai-badge {
    font-size: 14px;
    margin-left: 4px;
}

.editor-mode-links {
    float: right;
    font-size: 13px;
    font-weight: normal;
}

.editor-link {
    color: #4285f4;
    text-decoration: none;
}

.editor-link:hover {
    text-decoration: underline;
}

/* Toolbar de contenu */
.content-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 0;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.toolbar-btn.secondary {
    color: #64748b;
}

.toolbar-spacer {
    flex: 1;
}

.editor-view-toggle {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.view-btn {
    padding: 6px 12px;
    border: none;
    background: white;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

.view-btn.active {
    background: #f1f5f9;
    color: #374151;
    font-weight: 500;
}

/* Editor toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.toolbar-select {
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #374151;
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 4px;
}

.editor-toolbar button {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #475569;
}

.editor-toolbar button:hover {
    background: #e5e7eb;
}

.lesson-editor {
    min-height: 250px;
    max-height: 600px;
    border-radius: 0 0 8px 8px;
    border-top: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-y: auto;
}

/* Side sections */
.side-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.side-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* Featured Image Upload */
.lesson-image-upload {
    text-align: center;
}

.upload-placeholder-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    background: white;
}

.upload-btn-small {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn-small:hover {
    background: #e5e7eb;
}

.upload-placeholder-small small {
    font-size: 11px;
    color: #94a3b8;
}

.image-preview-small {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

/* Video URL */
.add-url-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #f0f7ff;
    border: 1px dashed #4285f4;
    border-radius: 6px;
    font-size: 13px;
    color: #4285f4;
    cursor: pointer;
    transition: all 0.2s;
}

.add-url-btn:hover {
    background: #e0edff;
}

.video-url-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 10px;
}

/* Playback Time */
.playback-time-inputs {
    display: flex;
    gap: 10px;
}

.time-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    background: white;
}

.time-input-group input:focus {
    outline: none;
    border-color: #4285f4;
}

.time-input-group span {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* Upload Attachment */
.upload-attachment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-attachment-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.attachments-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
}

.attachment-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.attachment-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

/* Lesson Preview Toggle */
.lesson-preview-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.pro-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .lesson-modal-body {
        flex-direction: column;
    }
    
    .lesson-side-column {
        width: 100%;
    }
}

/* ============================================
   STEP 3 - PARAMÈTRES / ADDITIONAL
   ============================================ */

.settings-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.settings-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #64748b;
    transition: all 0.2s;
}

.back-link:hover {
    background: #f1f5f9;
    color: #374151;
}

.settings-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.section-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.settings-section .form-group {
    margin-bottom: 20px;
}

.settings-section .form-group:last-child {
    margin-bottom: 0;
}

.settings-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.settings-section textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.settings-section textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.settings-section textarea::placeholder {
    color: #94a3b8;
}

/* Duration inputs */
.duration-inputs {
    display: flex;
    gap: 20px;
}

.duration-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.duration-field input {
    width: 80px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.duration-field input:focus {
    outline: none;
    border-color: #4285f4;
}

.duration-field span {
    font-size: 14px;
    color: #64748b;
}

/* Certificate section */
.certificate-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 1px solid #bfdbfe;
}

.certificate-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.certificate-header .section-title {
    margin-bottom: 0;
}

.certificate-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.certificate-image {
    padding: 30px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.certificate-toggle .toggle-label {
    font-size: 14px;
    color: #374151;
}

/* Step navigation for step 3 */
.settings-container .step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-publish {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-publish:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Responsive for settings */
@media (max-width: 768px) {
    .settings-container {
        padding: 20px;
    }
    
    .duration-inputs {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   MEDIA MODAL STYLES
   ============================================ */

.media-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.media-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.media-tab-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.media-tab-btn.active {
    background: #4285f4;
    color: white;
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
}

.media-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
}

.media-upload-zone:hover,
.media-upload-zone.drag-over {
    border-color: #4285f4;
    background: #eff6ff;
}

.media-upload-zone svg {
    margin-bottom: 16px;
}

.media-upload-zone p {
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

.media-upload-zone span {
    font-size: 14px;
    color: #94a3b8;
    display: block;
    margin-bottom: 16px;
}

.media-upload-zone small {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.btn-browse {
    padding: 10px 24px;
    background: #4285f4;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-browse:hover {
    background: #3367d6;
}

.media-preview-container {
    text-align: center;
    padding: 20px;
}

.media-preview {
    max-width: 100%;
    margin-bottom: 16px;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-remove-media {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fee2e2;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-media:hover {
    background: #fecaca;
}

.btn-preview-url {
    margin-top: 12px;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-preview-url:hover {
    background: #e2e8f0;
}

.url-preview {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.url-preview img,
.url-preview iframe {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
}

.library-search {
    margin-bottom: 16px;
}

.library-search input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.library-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.library-item:hover {
    border-color: #4285f4;
}

.library-item.selected {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
}

.library-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 40px;
}

.media-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.media-options .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#insertMediaBtn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

#insertMediaBtn:disabled:hover {
    background: #94a3b8;
}
/* ============================================
   DRIP CONTENT STYLES
   ============================================ */

.drip-info-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin-top: 16px;
    align-items: flex-start;
}

.drip-info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0284c7;
}

.drip-info-box p {
    font-size: 13px;
    color: #0369a1;
    line-height: 1.5;
    margin: 0;
}

.drip-module-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.drip-settings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
}

.drip-settings-header svg {
    color: #4285f4;
}

.drip-auto-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ecfdf5;
    border-radius: 8px;
    font-size: 13px;
    color: #047857;
}

.drip-auto-info svg {
    color: #10b981;
    flex-shrink: 0;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

/* Topic drip badge in list */
.topic-drip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f0f9ff;
    color: #0284c7;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

.topic-drip-badge svg {
    width: 12px;
    height: 12px;
}

.topic-drip-badge.locked {
    background: #fef3c7;
    color: #d97706;
}