/* ========== 学生管理弹窗样式 ========== */

/* 学生管理弹窗 */
#studentMgmtModal .student-mgmt-modal-content {
    width: 600px;
    max-width: 95%;
}

/* 学生管理区块样式 */
.student-mgmt-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.student-mgmt-section:last-child {
    margin-bottom: 0;
}

.student-mgmt-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 学生列表头部（标题+搜索框） */
.student-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 学生管理弹窗搜索框 */
.student-mgmt-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 4px 12px;
    transition: all 0.2s ease;
    min-width: 160px;
}

.student-mgmt-search-box:focus-within {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb, 76, 175, 80), 0.1);
}

.student-mgmt-search-box .search-icon {
    font-size: 14px;
    margin-right: 6px;
    opacity: 0.6;
}

.student-mgmt-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 100%;
    padding: 4px 0;
}

.student-mgmt-search-input::placeholder {
    color: #999;
}

.student-mgmt-search-box .btn-clear-search {
    width: 18px;
    height: 18px;
    border: none;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.student-mgmt-search-box .btn-clear-search:hover {
    background: #ccc;
    color: #333;
}

/* 搜索高亮样式 */
.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 0 2px;
    border-radius: 2px;
}

/* 添加学生行样式 */
.add-student-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-student-row .form-control {
    flex: 1;
}

.add-student-row .btn {
    flex-shrink: 0;
}

.student-mgmt-tip {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* 学生列表容器 */
.student-list-container {
    max-height: 300px;
    overflow-y: auto;
}

/* 学生行样式 */
.student-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.student-item:last-child {
    margin-bottom: 0;
}

.student-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 学生左侧信息 */
.student-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* 学生编号样式 */
.student-index {
    width: 28px;
    height: 28px;
    background-color: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 学生姓名样式 */
.student-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* 学生操作按钮区域 */
.student-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 学生操作按钮通用样式 */
.student-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;
}

.student-item-actions button:hover {
    transform: scale(1.1);
}

/* 学生改名按钮 */
.btn-rename-student {
    color: #1976d2;
}

.btn-rename-student:hover {
    background-color: #e3f2fd !important;
}

/* 学生删除按钮 */
.btn-delete-student {
    color: #c62828;
}

.btn-delete-student:hover {
    background-color: #ffebee !important;
}

/* 学生列表空状态 */
.student-list-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
}

/* 学生管理响应式 */
@media (max-width: 480px) {
    #studentMgmtModal .student-mgmt-modal-content {
        width: 95%;
    }
    
    .add-student-row {
        flex-wrap: wrap;
    }
    
    .add-student-row .form-control {
        width: 100%;
        flex: none;
    }
    
    .add-student-row .btn {
        flex: 1;
    }
    
    .student-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .student-item-left {
        width: 100%;
    }
    
    .student-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* 学生列表头部响应式 */
    .student-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .student-mgmt-search-box {
        width: 100%;
    }
}
