/* 自定义课程样式 */

.custom-header {
    background: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.header-title {
    font-size: 17px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-btn {
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
}

.form-container {
    background: white;
    margin: 16px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #374151;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

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

.form-row .form-group {
    flex: 1;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #374151;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: #374151;
    color: white;
}

.btn-primary:hover {
    background: #1f2937;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.course-list {
    margin: 16px;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.course-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.course-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.course-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.action-btn:hover {
    opacity: 0.8;
}

.edit-btn {
    background: #f3f4f6;
    color: #374151;
}

.delete-btn {
    background: #fef2f2;
    color: #ef4444;
}

.course-detail {
    font-size: 13px;
    color: #6b7280;
    line-height: 2;
}

.course-detail span {
    color: #9ca3af;
    margin-right: 8px;
}
