/* ========== 班级管理弹窗样式 ========== */

/* 班级管理弹窗 */
#classMgmtModal .class-mgmt-modal-content {
    width: 550px;
    max-width: 95%;
}

/* 班级管理区块样式 */
.class-mgmt-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.class-mgmt-section:last-child {
    margin-bottom: 0;
}

.class-mgmt-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 创建班级行样式 */
.create-class-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-class-row .form-control {
    flex: 1;
}

.create-class-row .btn {
    flex-shrink: 0;
}

.class-mgmt-tip {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* 班级列表容器 */
.class-list-container {
    max-height: 300px;
    overflow-y: auto;
}

/* 班级行样式 */
.class-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.class-item:last-child {
    margin-bottom: 0;
}

.class-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 班级左侧信息 */
.class-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* 班级名称样式 */
.class-item .class-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* 当前游戏班级标识 */
.current-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--theme-color);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
}

/* 班级操作按钮区域 */
.class-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 班级操作按钮通用样式 */
.class-item-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background-color: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.class-item-actions button:hover {
    transform: scale(1.1);
}

/* 改名按钮 */
.btn-rename {
    color: #1976d2;
}

.btn-rename:hover {
    background-color: #e3f2fd !important;
}

/* 学生管理按钮 */
.btn-students {
    color: #388e3c;
}

.btn-students:hover {
    background-color: #e8f5e9 !important;
}

/* 删除按钮 */
.btn-delete {
    color: #c62828;
}

.btn-delete:hover {
    background-color: #ffebee !important;
}

/* 班级列表空状态 */
.class-list-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
}

/* 班级管理响应式 */
@media (max-width: 480px) {
    #classMgmtModal .class-mgmt-modal-content {
        width: 95%;
    }
    
    .create-class-row {
        flex-wrap: wrap;
    }
    
    .create-class-row .form-control {
        width: 100%;
        flex: none;
    }
    
    .create-class-row .btn {
        flex: 1;
    }
    
    .class-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .class-item-left {
        width: 100%;
    }
    
    .class-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
