/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding: 0;
    height: 100vh;
}

.row {
    margin: 0;
    height: 100%;
}

/* 左侧面板样式 */
.left-panel {
    background-color: #343a40;
    color: white;
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
}

.panel-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #6c757d;
}

.panel-header h4 {
    margin: 0;
    font-weight: bold;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-control, .form-select {
    background-color: #495057;
    color: white;
    border: 1px solid #6c757d;
}

.form-control:focus, .form-select:focus {
    background-color: #495057;
    color: white;
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.form-select option {
    background-color: #495057;
    color: white;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* 右侧内容区域样式 */
.right-panel {
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* 姓氏首字母样式 */
.alphabet-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.alphabet-letter {
    background-color: #e9ecef;
    color: #495057;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.alphabet-letter:hover {
    background-color: #007bff;
    color: white;
}

.alphabet-letter.active {
    background-color: #007bff;
    color: white;
}

/* 学生列表样式 */
.student-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.student-item {
    background-color: #e9ecef;
    color: #495057;
    padding: 6px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: normal;
    font-size: 0.9em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.student-item:hover {
    background-color: #007bff;
    color: white;
}

.student-item.active {
    background-color: #007bff;
    color: white;
}

.student-item.recorded {
    background-color: #28a745;
    color: white;
}

/* 成绩输入区域样式 */
.score-input-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 表格样式 */
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

.table th {
    background-color: #343a40;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* 下载模态框样式 */
.modal-header {
    background-color: #007bff;
    color: white;
}

.modal-title {
    font-weight: bold;
}

.selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.selection-group {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background-color: #f8f9fa;
}

.selection-group h6 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    color: #495057;
}

.selection-group .form-check {
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .left-panel {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    
    .right-panel {
        width: 100%;
        height: auto;
    }
    
    .row {
        flex-direction: column;
    }
}