/* ===== Select Page Layout ===== */
.select-page { min-height: 100vh; display: flex; flex-direction: column; }

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #EBEEF5;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.top-left       { display: flex; align-items: center; gap: 8px; }
.turn-name      { font-size: 16px; font-weight: 600; color: #303133; }
.top-right      { display: flex; align-items: center; gap: 16px; }
.virtual-wallet { font-size: 14px; color: #409EFF; font-weight: 500; }
.select-body    { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #EBEEF5;
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-section    { margin-bottom: 20px; }
.sidebar-section h4 {
  font-size: 14px;
  color: #303133;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EBEEF5;
}
.status-item       { margin-bottom: 12px; }
.status-item > span { font-size: 13px; color: #606266; display: block; margin-bottom: 4px; }
.program-item       { margin-bottom: 10px; }
.program-item > span { font-size: 12px; color: #606266; display: block; margin-bottom: 2px; }

/* Main Content */
.main-content {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  background: #F5F7FA;
}
.tab-content {
  background: #fff;
  border-radius: 4px;
  padding: 16px;
  margin-top: 12px;
}

/* ===== Major Plan ===== */
.plan-module  { margin-bottom: 8px; }
.module-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #F5F7FA;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.module-header:hover { background: #ECF5FF; }
.module-header.sub   { margin-left: 24px; font-weight: 400; font-size: 13px; }
.module-stat  { color: #909399; font-size: 12px; font-weight: 400; }
.module-body  { padding: 4px 0 4px 28px; }
.plan-course-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #EBEEF5;
  font-size: 13px;
}
.plan-course-row:hover { background: #FAFAFA; }
.pc-name    { flex: 1; min-width: 200px; }
.pc-credits { color: #909399; width: 60px; }
.pc-term    { color: #909399; width: 100px; }
.sub-module { margin-top: 4px; }

/* ===== Selected Summary ===== */
.selected-summary {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
  color: #303133;
}

/* ===== Timetable ===== */
.timetable { overflow-x: auto; }

.tt-table    { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tt-table th {
  background: #F5F7FA;
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  border: 1px solid #EBEEF5;
}
.tt-table td { border: 1px solid #EBEEF5; height: 84px; vertical-align: top; padding: 0; }

.tt-time {
  font-size: 12px;
  color: #909399;
  text-align: center;
  vertical-align: middle !important;
  background: #FAFAFA;
  padding: 4px !important;
}

.tt-cell {
  cursor: pointer;
  transition: background .15s;
  padding: 4px !important;
  position: relative;
}
.tt-cell:hover     { opacity: .85; }
.tt-cell-free      { background: #fff; }
.tt-cell-occupied  { background: #ECF5FF; }
.tt-cell-active    { outline: 3px solid #409EFF; outline-offset: -3px; z-index: 1; }

.tt-course-block {
  padding: 6px 4px;
  border-radius: 4px;
  background: #409EFF;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  gap: 2px;
}
.tt-course-name       { font-weight: 600; font-size: 13px; text-align: center; }
.tt-teacher, .tt-room { font-size: 11px; opacity: .9; }

/* Timetable Legend */
.tt-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  padding: 8px 4px;
  font-size: 13px;
  color: #606266;
}
.tt-legend-item  { display: flex; align-items: center; gap: 6px; }
.tt-legend-color {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #DCDFE6;
}
.tt-legend-occupied { background: #409EFF; border-color: #409EFF; }
.tt-legend-selected { background: #ECF5FF; outline: 3px solid #409EFF; outline-offset: -3px; }

/* Timetable Slot Course List */
.tt-slot-courses { margin-top: 20px; }
.tt-slot-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #303133;
  flex-wrap: wrap;
  gap: 8px;
}
