/* ==================== 课程管理模块样式 ==================== */
/* 版本: 1.0.0 */

/* ==================== 课程管理弹窗 ==================== */
.course-management-modal .modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ==================== 课程信息单元格 ==================== */
.course-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-thumb-small {
    width: 60px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--secondary), var(--info));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-info-text {
    min-width: 0;
}

.course-title {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.course-tags {
    margin-top: 4px;
}

/* ==================== 类型标签 ==================== */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.type-badge.video {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.type-badge.article {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.type-badge.interactive3d {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* ==================== 角色标签扩展 ==================== */
.role-badge.teacher {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* ==================== 查看按钮 ==================== */
.action-btn.view {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
}

.action-btn.view:hover {
    background: var(--secondary);
    color: white;
}

/* ==================== 权限提示 ==================== */
.permission-notice {
    margin-top: 20px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--info);
    font-size: 14px;
}

.permission-notice i {
    font-size: 18px;
}

/* ==================== 标签选择 ==================== */
.tag-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-checkbox:hover {
    opacity: 0.8;
}

.tag-checkbox input[type="checkbox"] {
    cursor: pointer;
}

/* ==================== 表单文本域 ==================== */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* ==================== 课程表单弹窗 ==================== */
.course-form-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* ==================== 类型字段分组 ==================== */
#videoFields,
#articleFields,
#interactiveFields {
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

#videoFields::before {
    content: '视频设置';
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#articleFields::before {
    content: '图文设置';
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#interactiveFields::before {
    content: '3D互动设置';
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .course-management-modal .modal-body {
        padding: 16px;
    }
    
    .course-info-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .course-thumb-small {
        width: 80px;
        height: 50px;
    }
    
    .course-title {
        max-width: 150px;
    }
    
    .permission-notice {
        flex-direction: column;
        text-align: center;
    }
}
