/* =================================================================
   STEP 4 - PRÉVISUALISATION DU COURS
   Interface premium avec UX/UI exceptionnelle
   ================================================================= */

/* Enlever le background et bordures de la card à la step 4 UNIQUEMENT */
[data-step="4"] .moodia-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: var(--spacing-2xl) 0;
}

/* =================================================================
   LAYOUT PRINCIPAL - REFONTE UX/UI AVEC SOMMAIRE
   ================================================================= */
.course-preview {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-2xl);
    align-items: flex-start;
}

.course-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: var(--spacing-xl);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: var(--spacing-xl);
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-course-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--color-primary);
    line-height: 1.4;
}

.sidebar-sections-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.toc-section {
    margin-bottom: var(--spacing-lg);
}

.toc-section-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.toc-activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding-left: var(--spacing-md);
}

.toc-activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-gray-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    width: 100%;
}

.toc-activity-item:hover {
    background: rgba(12, 129, 228, 0.05);
    border-color: rgba(12, 129, 228, 0.2);
    color: var(--color-primary);
}

.toc-activity-item.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.toc-activity-type {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.toc-activity-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-main {
    flex: 1;
    min-width: 0;
}

/* =================================================================
   TITRE DU COURS - CLEAN & MINIMAL
   ================================================================= */
.course-header-modern {
    margin-bottom: var(--spacing-3xl);
    background: var(--color-white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.course-title-editable {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    font-family: var(--font-secondary);
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    padding-bottom: var(--spacing-sm);
}

.course-title-editable:hover {
    color: var(--color-primary);
    border-bottom-color: rgba(12, 129, 228, 0.2);
}

.course-title-editable:focus {
    outline: none;
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* =================================================================
   STRUCTURE DES SECTIONS
   ================================================================= */
.course-structure-modern {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

/* =================================================================
   SECTION - CARD MODERNE AVEC HIÉRARCHIE CLAIRE
   ================================================================= */
.section-modern {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-2xl);
    background: linear-gradient(to right, rgba(12, 129, 228, 0.08), rgba(12, 129, 228, 0.02));
    border-bottom: 1px solid var(--color-gray);
}

.section-header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.collapse-btn {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.collapse-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.collapse-btn svg {
    transition: transform 0.3s ease;
}

.section-title-modern {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.section-title-modern:hover {
    border-color: var(--color-primary);
}

.section-title-modern:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 129, 228, 0.1);
}

.delete-btn {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    padding: var(--spacing-sm);
    cursor: pointer;
    color: var(--color-gray-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.delete-btn:hover {
    background: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}

.section-description {
    width: 100%;
    border: none;
    background: rgba(249, 250, 251, 0.5);
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

.section-description:focus {
    outline: none;
    background: var(--color-white);
    border-bottom-color: var(--color-primary);
}

.section-description::placeholder {
    color: var(--color-gray);
    font-style: italic;
}

/* Section collapsée */
.section-modern.collapsed .section-content {
    display: none;
}

.section-modern.collapsed .section-description {
    display: none;
}

.collapsed .collapse-btn svg {
    transform: rotate(-90deg);
}

/* =================================================================
   ACTIVITÉS - DESIGN ÉPURÉ ET MODERNE
   ================================================================= */
.section-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-2xl);
}

.activity-modern {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
}

.activity-modern:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(12, 129, 228, 0.3);
    transform: translateY(-1px);
}

.activity-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.activity-collapse-btn {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.activity-collapse-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.activity-collapse-btn svg {
    transition: transform 0.3s ease;
}

.activity-modern.collapsed .activity-collapse-btn svg {
    transform: rotate(-90deg);
}

.activity-title-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.activity-title-modern {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.activity-title-modern:hover {
    border-color: var(--color-gray);
}

.activity-title-modern:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(12, 129, 228, 0.1);
}

/* Type badges colorés par catégorie */
.activity-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
}

.activity-type-badge.clickable {
    cursor: pointer;
}

.activity-type-badge.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.activity-type-badge.clickable:active {
    transform: translateY(0);
}

/* Couleurs par type d'activité */
.activity-type-badge[data-type="page"] {
    background: #6366F1;
    color: var(--color-white);
}

.activity-type-badge[data-type="label"] {
    background: #8B5CF6;
    color: var(--color-white);
}

.activity-type-badge[data-type="file"] {
    background: #10B981;
    color: var(--color-white);
}

.activity-type-badge[data-type="url"] {
    background: #3B82F6;
    color: var(--color-white);
}

.activity-type-badge[data-type="assignment"] {
    background: #F59E0B;
    color: var(--color-white);
}

.activity-type-badge[data-type="quiz"] {
    background: #EF4444;
    color: var(--color-white);
}

.activity-type-badge[data-type="forum"] {
    background: #06B6D4;
    color: var(--color-white);
}

.activity-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.activity-type-selector {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    background: var(--color-white);
    color: var(--color-gray-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-xs) center;
    background-size: 12px;
    padding-right: calc(var(--spacing-md) + 16px);
}

.activity-type-selector:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.activity-type-selector:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(12, 129, 228, 0.1);
}

.activity-action-btn {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--color-gray-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    width: 32px;
    height: 32px;
}

.activity-action-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.activity-action-btn.delete:hover {
    background: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}

.activity-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Contenu de l'activité */
.activity-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.content-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-dark);
}

.content-edit-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-edit-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(12, 129, 228, 0.3);
}

.activity-content-display {
    padding: var(--spacing-lg);
    background: rgba(249, 250, 251, 0.6);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(12, 129, 228, 0.1);
    min-height: 100px;
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

.activity-content-empty {
    padding: var(--spacing-lg);
    background: rgba(249, 250, 251, 0.4);
    border: 1px dashed var(--color-gray);
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: var(--color-gray-dark);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* Styles pour l'éditeur Trix */
.trix-content {
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-lg);
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

trix-toolbar {
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: none;
    background: rgba(249, 250, 251, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

trix-editor {
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

trix-editor:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(12, 129, 228, 0.1);
}

.activity-modern.collapsed .activity-body {
    display: none;
}

.activity-info {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    line-height: 1.7;
    padding: var(--spacing-lg);
    background: rgba(249, 250, 251, 0.6);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(12, 129, 228, 0.1);
}

.activity-meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.activity-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--color-gray-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-sm);
}

.activity-meta-item svg {
    width: 14px;
    height: 14px;
}

/* =================================================================
   DROPDOWN DE TYPE D'ACTIVITÉ
   ================================================================= */
.activity-type-dropdown-wrapper {
    position: relative;
}

.activity-type-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--color-white);
    border: 2px solid var(--color-gray);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: var(--spacing-xs);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-type-dropdown.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.activity-type-dropdown-item {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    background: none;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.activity-type-dropdown-item:hover {
    background: rgba(12, 129, 228, 0.1);
    color: var(--color-primary);
}

.activity-type-dropdown-item:active {
    background: rgba(12, 129, 228, 0.15);
}


/* =================================================================
   TAGS CLIQUABLES - SYSTÈME D'ACTIVATION MODERNE
   ================================================================= */
.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.8), rgba(255, 255, 255, 0.5));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(12, 129, 228, 0.1);
}

.activity-tags-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-dark);
    margin-right: var(--spacing-sm);
    display: flex;
    align-items: center;
}

.activity-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    background: var(--color-white);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-gray);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.activity-tag:hover {
    border-color: var(--color-primary);
    background: rgba(12, 129, 228, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(12, 129, 228, 0.15);
}

/* État actif */
.activity-tag.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 3px 12px rgba(12, 129, 228, 0.4);
}

.activity-tag.active:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(12, 129, 228, 0.5);
}

/* Icône de check pour les tags actifs */
.activity-tag svg {
    width: 14px;
    height: 14px;
    display: none;
}

.activity-tag.active svg {
    display: block;
}

/* =================================================================
   BOUTONS D'AJOUT - DESIGN MODERNE ET ÉPURÉ
   ================================================================= */
.add-activity-btn {
    width: 100%;
    padding: var(--spacing-lg);
    border: 2px dashed rgba(12, 129, 228, 0.3);
    background: rgba(12, 129, 228, 0.02);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.add-activity-btn:hover {
    border-color: var(--color-primary);
    background: rgba(12, 129, 228, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(12, 129, 228, 0.15);
}

.add-section-btn-main {
    width: 100%;
    padding: var(--spacing-xl);
    border: 2px dashed rgba(12, 129, 228, 0.3);
    background: linear-gradient(135deg, rgba(12, 129, 228, 0.03), rgba(12, 129, 228, 0.01));
    border-radius: var(--border-radius-xl);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-3xl);
    box-shadow: 0 2px 8px rgba(12, 129, 228, 0.1);
}

.add-section-btn-main:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(12, 129, 228, 0.08), rgba(12, 129, 228, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(12, 129, 228, 0.2);
}

/* =================================================================
   PANNEAU DE PARAMÈTRES - MOODLE STYLE
   ================================================================= */
.activity-settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--color-gray);
}

.activity-settings-panel.is-visible {
    right: 0;
}

.activity-settings-panel__header {
    padding: var(--spacing-xl);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.activity-settings-panel__title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
}

.activity-settings-panel__close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: var(--spacing-sm);
    cursor: pointer;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.activity-settings-panel__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.activity-settings-panel__content {
    padding: var(--spacing-xl);
    flex: 1;
}

.settings-form-group {
    margin-bottom: var(--spacing-lg);
}

.settings-form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
}

.settings-form-group input,
.settings-form-group select,
.settings-form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    font-family: inherit;
}

.settings-form-group input:focus,
.settings-form-group select:focus,
.settings-form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(12, 129, 228, 0.1);
}

.settings-form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 768px) {
    .course-preview {
        padding: var(--spacing-md);
    }

    .course-header-modern {
        padding: var(--spacing-lg);
    }

    .course-title-editable {
        font-size: 1.5rem;
    }

    .section-modern {
        padding: var(--spacing-md);
    }

    .section-title-modern {
        font-size: 1rem;
    }

    .activity-settings-panel {
        width: 100%;
        right: -100%;
    }

    .activity-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
