#classroom-schedule-page {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow-y: hidden !important;
}

#classroom-schedule-page .schedule-header {
  justify-content: center !important;
  position: relative;
  flex-wrap: nowrap;
  gap: 8px;
}

#classroom-schedule-page .sub-page-back {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

#classroom-schedule-page .sub-page-title {
  text-align: center;
}

#classroom-schedule-page .schedule-page-content {
  max-width: 100%;
  padding: 0;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#classroom-schedule-page .course-section {
  max-width: 100%;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#classroom-schedule-page #classroomManageSection {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

#classroom-schedule-page:not(.active) .schedule-float-nav {
  display: none;
}

/* 教室课表课程块：统一单色背景 */
.classroom-course {
  background: var(--text-light) !important;
  border-color: rgba(74, 124, 89, 0.3) !important;
}

@media (prefers-color-scheme: dark) {
  .classroom-course {
    background: rgba(168, 224, 99, 0.15) !important;
    border-color: rgba(168, 224, 99, 0.3) !important;
  }
}

/* ================== 课表/座位切换按钮 ================== */
.schedule-seat-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  background: var(--card-bg, rgba(0,0,0,0.06));
  border-radius: 20px;
  padding: 2px;
  gap: 0;
}

.schedule-seat-toggle .toggle-btn {
  border: none;
  background: transparent;
  color: var(--subtext, #999);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.schedule-seat-toggle .toggle-btn.active {
  background: var(--text);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.schedule-seat-toggle .toggle-btn:not(.active):hover {
  color: var(--text, #333);
}

/* ================== 座位排布视图 ================== */
.seat-layout-section {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seat-layout-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.seat-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--subtext, #999);
  font-size: 14px;
  padding: 40px 0;
}

.seat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--subtext, #999);
  font-size: 14px;
  padding: 60px 0;
}

.seat-empty i {
  font-size: 40px;
  opacity: 0.3;
}

/* 座位图例 */
.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--card-bg, rgba(0,0,0,0.04));
  border-radius: 10px;
  width: 100%;
}

.seat-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--subtext, #666);
}

.seat-legend-icon {
  width: 20px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

/* Canvas 座位图 */
.seat-canvas {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.seat-canvas-wrapper {
  cursor: default;
}

.seat-canvas-wrapper:active {
  cursor: grabbing;
}

/* 隐藏座位区域的滚动条 */
.seat-layout-section {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.seat-layout-section::-webkit-scrollbar {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .seat-legend {
    background: rgba(255,255,255,0.04);
  }
}
