/* ==========================================================================
   LMA BUILDER - DESIGN SOMBRE & ÉLÉGANT (Dark Premium)
   ========================================================================== */

.lma-builder-wrapper { 
    background: #0f172a; 
    padding: 25px; 
    font-family: -apple-system, sans-serif; 
    border-radius: 16px; 
    color: #f8fafc; 
    border: 1px solid #334155; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5); 
}

.lma-builder-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #1e293b; 
    padding: 15px 25px; 
    border-radius: 12px; 
    margin-bottom: 25px; 
    border: 1px solid #334155; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
}

.lma-builder-nav h2 { 
    margin: 0; 
    font-size: 18px; 
    color: #d4af37; 
    font-weight: 800; 
}

.lma-tabs { 
    display: flex; 
    gap: 8px; 
}

.lma-tab-btn { 
    background: none; 
    border: none; 
    padding: 10px 20px; 
    font-size: 14px; 
    font-weight: 600; 
    color: #94a3b8; 
    cursor: pointer; 
    border-radius: 8px; 
    transition: all 0.3s; 
}

.lma-tab-btn:hover { 
    background: #334155; 
    color: #f8fafc; 
}

.lma-tab-btn.active { 
    background: rgba(212, 175, 55, 0.15); 
    color: #d4af37; 
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3); 
}

.lma-btn-publish { 
    background: linear-gradient(135deg, #fcd34d 0%, #d4af37 100%); 
    color: #0f172a; 
    border: none; 
    padding: 10px 25px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.3s; 
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.2); 
}

.lma-btn-publish:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3); 
}

.lma-btn-publish:disabled {
    background: #475569;
    color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.lma-tab-content { 
    display: none; 
    animation: fadeIn 0.3s ease; 
}

.lma-tab-content.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.lma-basics-layout { 
    display: flex; 
    gap: 25px; 
    align-items: flex-start; 
}

.lma-basics-main { 
    flex: 1; 
    background: #1e293b; 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid #334155; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
}

.lma-basics-sidebar { 
    width: 320px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    flex-shrink: 0; 
}

.lma-sidebar-box { 
    background: #1e293b; 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid #334155; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
}

.lma-sidebar-box h4 {
    color: #f8fafc;
    margin-top: 0;
    border-bottom: 1px solid #334155;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 16px;
}

.lma-form-group { 
    margin-bottom: 20px; 
}

.lma-form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #f8fafc; 
    font-size: 14px; 
}

.lma-form-control { 
    width: 100%; 
    padding: 12px 15px; 
    background: #0f172a; 
    border: 1px solid #334155; 
    color: #f8fafc; 
    border-radius: 8px; 
    font-size: 14px; 
    box-sizing: border-box; 
    transition: all 0.3s; 
}

.lma-form-control:focus { 
    border-color: #d4af37; 
    outline: none; 
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2); 
}

.lma-form-control option { 
    background: #1e293b; 
    color: #f8fafc; 
}

.lma-lesson-item { 
    background: #1e293b; 
    border: 1px solid #334155; 
    padding: 25px; 
    border-radius: 12px; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
}

.lma-btn-add-lesson { 
    width: 100%; 
    background: rgba(212, 175, 55, 0.05); 
    color: #d4af37; 
    border: 2px dashed #d4af37; 
    padding: 15px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 15px;
    cursor: pointer; 
    transition: all 0.3s; 
}

.lma-btn-add-lesson:hover { 
    background: rgba(212, 175, 55, 0.15); 
}

/* NOUVEAUTÉ : Zone d'aperçu pour l'image de couverture */
.lma-cover-upload-zone { background: #f8fafc; border: 1px dashed #cbd5e1; padding: 20px; text-align: center; border-radius: 6px; }
.lma-cover-preview { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; border: 1px solid #cbd5e1; display: none; }
.lma-cover-preview.has-image { display: block; }
#lma-cover-input { width: 100%; font-size: 12px; color: #0f172a; }


.lma-bunny-zone-clean { background: transparent; border: none; padding: 0; }
.lma-upload-btn-wrapper { margin-bottom: 10px; margin-top: 5px; }
.lma-btn-upload-trigger { display: block; width: 100%; text-align: center; box-sizing: border-box; cursor: pointer; }
.lma-bunny-status-msg { margin-top: 5px; font-size: 12px; font-weight: bold; }
.lma-bunny-zone-clean .bunny-final-url { display: none !important; } 

.lma-bunny-btn { 
    background: linear-gradient(135deg, #fcd34d 0%, #d4af37 100%); 
    color: #0f172a; 
    border: none; 
    padding: 10px 18px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 13px; 
    transition: all 0.2s; 
}

.lma-bunny-btn:hover { 
    transform: scale(1.03); 
}

.lma-progress-bar { 
    width: 100%; 
    background: #334155; 
    border-radius: 4px; 
    height: 8px; 
    margin-top: 12px; 
    display: none; 
    overflow: hidden; 
}

.lma-progress-fill { 
    height: 100%; 
    background: #10b981; 
    width: 0%; 
    transition: width 0.2s; 
}

.wp-editor-container { 
    border: 1px solid #334155 !important; 
    border-radius: 8px; 
    overflow: hidden; 
}

@media (max-width: 900px) { 
    .lma-basics-layout { flex-direction: column; } 
    .lma-basics-sidebar { width: 100%; } 
}