/* 寒假班模板专用样式 */

/* 课程列表 */
.lesson-list {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    background: #fafafa;
    max-height: 300px;
    overflow-y: auto;
}

.lesson-list-empty {
    color: #999;
    text-align: center;
    padding: 30px;
    font-size: 14px;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}

.lesson-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-item:last-child {
    margin-bottom: 0;
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.lesson-date {
    background: #1890ff;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.lesson-content {
    color: #333;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.lesson-actions button {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.btn-edit:hover {
    background: #1890ff;
    color: white;
}

.btn-delete {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

.btn-delete:hover {
    background: #ff4d4f;
    color: white;
}

/* 添加课程按钮 */
.add-lesson-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 15px 0;
}

.add-lesson-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-lesson-btn:active {
    transform: translateY(0);
}

/* 生成选项 */
.generate-options {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: #f0f5ff;
    border-radius: 8px;
}

.generate-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.generate-options input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 课程弹窗 */
.lesson-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lesson-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lesson-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.lesson-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.lesson-modal-close {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-left: 20px;
    padding: 0;
}

.lesson-modal-close:hover {
    background: #e8e8e8;
    color: #333;
}

.lesson-modal-body {
    padding: 25px;
}

.lesson-modal-body .form-group {
    margin-bottom: 20px;
}

.lesson-modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.lesson-modal-body input[type="text"],
.lesson-modal-body input[type="date"],
.lesson-modal-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.lesson-modal-body input:focus,
.lesson-modal-body textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.lesson-modal-body textarea {
    min-height: 80px;
    resize: vertical;
}

.lesson-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.lesson-modal-footer button {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-confirm:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 弹窗内的星级评分 */
.modal-star-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.modal-star-rating > label {
    min-width: 90px;
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
    white-space: nowrap;
}

.modal-star-rating .stars {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.modal-star-rating .stars input {
    display: none;
}

.modal-star-rating .stars label {
    width: auto;
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.1s;
}

.modal-star-rating .stars label:hover,
.modal-star-rating .stars label.active,
.modal-star-rating .stars label.hover {
    color: #ffc107;
}

/* 删除确认弹窗 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.confirm-dialog-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
}

.confirm-dialog-content p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #333;
}

.confirm-dialog-content .buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
