/* 模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 11000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.modal-header {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 100%;
  box-sizing: border-box;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: white;
}

.modal-body {
  padding: 20px 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  line-height: 1.5;
}

.modal-icon {
  font-size: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}

#message-modal-message {
  font-size: 14px;
  color: #333;
  text-align: left;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  background: #f9f9f9;
  gap: 12px;
}

.modal-footer .btn-primary {
  background-color: #6f42c1;
  color: white;
  border: none;
  padding: 4px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.modal-footer .btn-primary:hover {
  background-color: #5a32a3;
}

.modal-footer .btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 4px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.modal-footer .btn-secondary:hover {
  background-color: #5a6268;
}



/* 消息提示模态框 - 设置更高层级，确保显示在其他模态框前面 */
#message-modal {
  z-index: 11002;
}

/* 确认模态框 - 设置更高层级，确保显示在其他模态框前面 */
#confirm-modal {
  z-index: 11001;
}

/* 临时学员模态框 - 设置更高层级，确保显示在其他模态框前面 */
#temp-student-modal {
  z-index: 99999 !important;
}

/* 临时学员搜索框样式 */
#temp-student-modal .search-box {
  width: 100%;
}

#temp-student-modal #temp-student-search {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  background: white;
  color: #333;
}

#temp-student-modal #temp-student-search:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* 点名模态框 - 设置层级 */
#attendance-modal {
  z-index: 11000;
}

/* 点名表格区域 - 最大高度限制 */
#attendance-modal .attendance-table {
  max-height: 300px;
  overflow-y: auto;
}

/* 点名表格区域的表格 */
#attendance-modal .attendance-table table {
  width: 100%;
}

/* 消息提示模态框 - 调整宽度以容纳表格 */
#message-modal .modal-content {
  max-width: 300px;
  width: 90%;
  max-height: 600px;
  overflow-y: auto;
}

#message-modal .modal-body {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

#message-modal .modal-body > div {
  max-height: 400px;
  overflow-y: auto;
  flex: 1;
}

#message-modal table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}

#message-modal th {
  padding: 10px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

#message-modal td {
  padding: 10px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

/* 停课人员详情模态框样式 */
#suspended-students-modal .modal-content {
  max-height: 600px;
  overflow-y: auto;
  max-width: 800px;
  width: 90%;
}

#suspended-students-modal .modal-body {
  padding: 20px;
  display: block;
}

#suspended-students-modal .modal-body > div {
  max-height: 400px;
  overflow-y: auto;
}

#suspended-students-modal table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}

#suspended-students-modal th {
  padding: 10px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

#suspended-students-modal td {
  padding: 10px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

/* 可续费学生详情模态框样式 */
#renewable-students-modal .modal-content {
  max-height: 400px;
  max-width: 800px;
  width: 90%;
}

#renewable-students-modal .modal-body {
  padding: 20px;
  display: block;
}

#renewable-students-modal .modal-body > div {
  max-height: 260px;
  overflow-y: auto;
}

#renewable-students-modal table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}

#renewable-students-modal th {
  padding: 10px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

#renewable-students-modal td {
  padding: 10px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

#renewable-students-modal .btn-renew {
  background-color: #6f42c1;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#renewable-students-modal .btn-renew:hover {
  background-color: #5a32a3;
}

/* 停课模态框样式 */
#suspend-modal .modal-content {
  max-width: 600px;
  width: 90%;
}

#suspend-modal .modal-body {
  display: block;
  padding: 20px;
}

#suspend-modal .form-group {
  margin-bottom: 15px;
}

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

#suspend-modal .form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

#suspend-modal .form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

#suspend-modal .form-input[type="date"] {
  height: 36px;
}

#suspend-modal .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

#suspend-modal .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* 错误提示样式 */
.error-modal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 收费模态框样式 */
#charge-modal .modal-content {
  max-width: 500px;
  width: 90%;
}

#charge-modal .modal-body {
  display: block;
  padding: 20px;
}

#charge-modal .charge-form-grid {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

#charge-modal .charge-form-group {
  flex: 1;
  min-width: 150px;
}

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

#charge-modal .form-input {
  width: 80%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  height: 36px;
  line-height: 36px;
}

#charge-modal .form-input[type="number"] {
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
}

#charge-modal select.form-input {
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23333' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

#charge-modal .form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

#charge-modal .error-message {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

#charge-modal .modal-footer {
  padding: 15px 20px;
  gap: 15px;
}

#charge-modal .modal-footer .btn-primary,
#charge-modal .modal-footer .btn-secondary {
  padding: 8px 16px;
  font-size: 14px;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 添加学生模态框样式 */
#add-student-modal .modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 500px;
}

#add-student-modal .modal-header {
  justify-content: space-between;
}

#add-student-modal .modal-body {
  display: block;
  padding: 20px;
}

#add-student-modal .search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

#add-student-modal .search-box input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}

#add-student-modal .student-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

#add-student-modal .student-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#add-student-modal .student-table th {
  background-color: #f9f9f9;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 600;
  color: #333;
}

#add-student-modal .student-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  text-align: left;
}

#add-student-modal .student-table th {
  text-align: left;
}

#add-student-modal .student-table tr:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

#add-student-modal .student-row {
  transition: background-color 0.3s ease;
}

#add-student-modal .student-checkbox {
  transform: scale(1.2);
  cursor: pointer;
}



/* 排课模态框样式 */
#schedule-modal .modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#schedule-modal .modal-header {
  justify-content: space-between;
  padding: 10px 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

#schedule-modal .modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

#schedule-modal .modal-body {
  display: block;
  padding: 25px;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
  flex: 1;
}

#schedule-modal .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#schedule-modal .info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#schedule-modal .info-item label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

#schedule-modal .form-input {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  background-color: #f8fafc;
}

#schedule-modal .form-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
  background-color: white;
}

#schedule-modal .modal-footer {
  padding: 15px 25px;
  gap: 15px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}



/* 排课表单样式 */
.schedule-form {
  width: 100%;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.form-label {
  width: 90px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  flex-shrink: 0;
}

/* 单选按钮组样式 */
.radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.radio-group label:hover {
  background-color: #eef2ff;
  border-color: #c7d2fe;
}

.radio-group input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
  accent-color: #4f46e5;
}

/* 时间范围样式 */
.time-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.time-separator {
  font-size: 14px;
  color: #64748b;
  margin: 0 5px;
  font-weight: 500;
}

/* 结束方式组样式 */
.end-type-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.end-type-group .end-type-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 250px;
}



.end-label {
  font-size: 14px;
  color: #334155;
  white-space: nowrap;
  font-weight: 500;
}

/* 复选框组样式 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.checkbox-group label:hover {
  background-color: #eef2ff;
  border-color: #c7d2fe;
}

.checkbox-group input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
  accent-color: #4f46e5;
}

/* 日历样式 */
.calendar {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  background-color: #ffffff;
  flex: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 240px;
}

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



#calendar-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.calendar-body {
  width: 100%;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 2px;
}

.calendar-weekdays div {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  padding: 2px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.calendar-day {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.calendar-day:hover {
  background-color: #eef2ff;
  border-color: #c7d2fe;
}

.calendar-day.today {
  font-weight: 600;
  border-color: #4f46e5;
  background-color: #f0f9ff;
}

.calendar-day.selected {
  background-color: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

.calendar-day.other-month {
  color: #94a3b8;
  background-color: #f8fafc;
}

/* 冲突检查结果样式 */
#conflict-result {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px;
  background-color: #f8fafc;
  margin-top: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.conflict-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.conflict-message {
  font-size: 13px;
  line-height: 1.4;
}

.conflict-message.error {
  color: #dc2626;
  font-weight: 500;
}

.conflict-message.success {
  color: #16a34a;
  font-weight: 500;
}

/* 排课内容切换 */
.schedule-content {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* 响应式调整 */
@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .form-label {
    width: 100%;
  }
  
  .radio-group,
  .time-range,
  .end-type-group {
    width: 100%;
  }
  
  .end-type-content {
    margin-left: 0;
    margin-top: 5px;
    width: 100%;
  }
  
  .radio-group label,
  .checkbox-group label {
    flex: 1;
    justify-content: center;
  }
}

/* 删除确认模态框样式 */
#delete-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 11000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in-out;
}

#delete-modal .modal-content {
  background: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

#delete-modal .modal-header {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 100%;
  box-sizing: border-box;
}

#delete-modal .modal-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: white;
}

#delete-modal .modal-body {
  padding: 20px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

#delete-modal .modal-icon {
  font-size: 32px;
  flex-shrink: 0;
}

#delete-modal .modal-message {
  font-size: 14px;
  color: #333;
  text-align: left;
  line-height: 1.4;
  margin: 0;
}

#confirm-modal-message {
  font-size: 14px;
  color: #333;
  text-align: left;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

#delete-modal .modal-footer {
  padding: 10px 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  background: #f9f9f9;
  gap: 10px;
}

/* 点名相关模态框通用样式 */
.attendance-modal .modal-content {
  max-height: 600px;
  overflow-y: auto;
  max-width: 800px;
  width: 90%;
}

.attendance-modal .modal-header {
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* 点名相关模态框标题样式 */
#attendance-modal .modal-header h3 {
  margin: 0;
  font-size: 16px !important;
  font-weight: 500;
  color: white;
}

#attendance-detail-modal .modal-header h3 {
  margin: 0;
  font-size: 16px !important;
  font-weight: 500;
  color: white;
}

.attendance-modal .attendance-header {
  padding: 15px;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.attendance-modal .attendance-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.attendance-modal .info-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

.attendance-modal .info-item label {
  font-weight: bold;
  margin-right: 2px;
}

.attendance-modal .modal-body {
  padding: 20px;
  display: block;
}

.attendance-modal .modal-body > div {
  max-height: 400px;
  overflow-y: auto;
}

.attendance-modal table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}

.attendance-modal th {
  padding: 10px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.attendance-modal td {
  padding: 10px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

/* 点名模态框表格列宽设置 */
#attendance-modal table th:nth-child(1),
#attendance-modal table td:nth-child(1) {
  width: 60px;
  text-align: center;
}

#attendance-modal table th:nth-child(2),
#attendance-modal table td:nth-child(2) {
  width: 120px;
  text-align: center;
}

#attendance-modal table th:nth-child(3),
#attendance-modal table td:nth-child(3) {
  width: 180px;
  text-align: center;
}

#attendance-modal table th:nth-child(4),
#attendance-modal table td:nth-child(4) {
  width: 100px;
  text-align: center;
}

#attendance-modal table th:nth-child(5),
#attendance-modal table td:nth-child(5) {
  width: 160px;
  text-align: center;
}

#attendance-modal table th:nth-child(6),
#attendance-modal table td:nth-child(6) {
  width: 120px;
  text-align: center;
}

#attendance-modal table th:nth-child(7),
#attendance-modal table td:nth-child(7) {
  width: 120px;
  text-align: center;
}

.attendance-modal .attendance-hours {
  width: 60px;
}

.attendance-modal .remove-course {
  padding: 8px 16px;
  border-radius: 4px;
}

.attendance-modal .modal-footer {
  padding: 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.attendance-modal .modal-footer button {
  padding: 8px 16px;
}

/* 班级点名模态框特有样式 */
#attendance-modal #teacher-select {
  width: 100px;
}

#attendance-modal #schedule-select {
  width: 180px;
}

#attendance-modal #add-temp-student {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

#attendance-modal #student-list {
  margin-top: 0;
}

#attendance-modal #student-list > div {
  max-height: 220px;
  overflow-y: auto;
}

/* 到课状态样式 */
.attendance-status {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.attendance-status label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* 消耗课时输入框样式 */
.attendance-hours {
  width: 60px;
}

/* 移至其他班级模态框样式 */
#move-student-modal .modal-content {
  max-width: 720px;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
}

#move-student-modal .modal-body {
  display: block;
  padding: 20px;
  min-height: 200px;
}

#move-student-modal .search-box {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}

#move-student-modal .class-list {
  max-height: 200px;
  overflow-y: scroll;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

#move-student-modal .class-table {
  width: 100%;
  border-collapse: collapse;
}

#move-student-modal .class-table th,
#move-student-modal .class-table td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 48px;
  line-height: 24px;
}

#move-student-modal .class-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

#move-student-modal .class-table th:first-child,
#move-student-modal .class-table td:first-child {
  width: 50px;
  text-align: center;
}

#move-student-modal .class-table th:nth-child(2),
#move-student-modal .class-table td:nth-child(2) {
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#move-student-modal .class-table th:nth-child(3),
#move-student-modal .class-table td:nth-child(3) {
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#move-student-modal .class-table th:nth-child(4),
#move-student-modal .class-table td:nth-child(4) {
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#move-student-modal .class-table th:nth-child(5),
#move-student-modal .class-table td:nth-child(5) {
  width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#move-student-modal .class-table tr:hover {
  background-color: #f5f5f5;
}

#move-student-modal .class-table tr.selected {
  background-color: #e3f2fd;
}

/* 安排体验课模态框样式 */
#arrange-trial-modal .modal-content {
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#arrange-trial-modal .modal-header {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

#arrange-trial-modal .modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: white;
}

#arrange-trial-modal .modal-body {
  padding: 20px;
  display: block;
  overflow-y: auto;
  flex: 1;
}

#arrange-trial-modal .form-group {
  margin-bottom: 15px;
}

#arrange-trial-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

#arrange-trial-modal .form-input {
  width: 100%;
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fff;
  height: 24px;
  line-height: 24px;
}

#arrange-trial-modal .form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

#arrange-trial-modal .form-input[type="date"],
#arrange-trial-modal .form-input[type="time"] {
  height: 38px;
  line-height: 38px;
}

#arrange-trial-modal .form-input[type="text"],
#arrange-trial-modal .form-input[type="textarea"] {
  height: 38px;
  line-height: 38px;
}

#arrange-trial-modal select.form-input {
  height: 24px;
  line-height: 24px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23333' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

#arrange-trial-modal textarea.form-input {
  height: auto;
  line-height: 1.5;
  min-height: 80px;
  resize: vertical;
}

#arrange-trial-modal .trial-radio-group {
  display: flex;
  flex-direction: row;
  gap: 15px;
  flex-wrap: wrap;
}

#arrange-trial-modal .trial-insert-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

#arrange-trial-modal .trial-insert-row .form-group {
  flex: 1;
  min-width: 150px;
}

#arrange-trial-modal .radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 6px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

#arrange-trial-modal .radio-item:hover {
  background-color: #eef2ff;
  border-color: #c7d2fe;
}

#arrange-trial-modal .radio-item input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
  accent-color: #4f46e5;
}

#arrange-trial-modal .trial-form-row {
  display: flex;
  gap: 15px;
}

#arrange-trial-modal .trial-form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

#arrange-trial-modal .modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f9f9f9;
  flex-shrink: 0;
}

#arrange-trial-modal .modal-footer .btn-primary {
  background-color: #6f42c1;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#arrange-trial-modal .modal-footer .btn-primary:hover {
  background-color: #5a32a3;
}

#arrange-trial-modal .modal-footer .btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#arrange-trial-modal .modal-footer .btn-secondary:hover {
  background-color: #5a6268;
}

/* 响应式调整 */
@media (max-width: 500px) {
  #arrange-trial-modal .trial-form-row {
    flex-direction: column;
  }
  
  #arrange-trial-modal .trial-form-row .form-group {
    width: 100%;
  }
}


