/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
}

.hidden {
  display: none !important;
}

/* 登录页 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: #fff;
  padding: 60px 50px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-box h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 8px;
}

.subtitle {
  color: #999;
  margin-bottom: 40px;
}

.login-form input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: #6A5ACD;
}

.login-form button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.login-form button:hover {
  opacity: 0.9;
}

.demo-hint {
  margin-top: 20px;
  color: #999;
  font-size: 14px;
}

/* 管理后台布局 */
#admin-page {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 240px;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
}

.logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-img {
  width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.nav-menu {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(106, 90, 205, 0.2);
  color: #fff;
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.2);
}

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.header h2 {
  font-size: 24px;
  color: #333;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.env-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.env-tag.warning {
  background: #fff3cd;
  color: #856404;
}

.env-tag.success {
  background: #d4edda;
  color: #155724;
}

.user-info {
  color: #666;
  font-size: 14px;
}

/* 同步和刷新按钮 */
.btn-sync, .btn-refresh {
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sync {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-sync:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-sync:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-refresh {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e0e0e0;
}

.btn-refresh:hover {
  background: #e8e8e8;
  color: #333;
}

/* 清理数据按钮 */
.btn-clean {
  padding: 6px 14px;
  background: #fff7e6;
  color: #d46b08;
  border: 1px solid #ffd591;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-clean:hover {
  background: #ffe7ba;
  border-color: #ffc53d;
  color: #ad6800;
}

.hidden {
  display: none !important;
}

/* 统计卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.bg-blue { background: #e3f2fd; }
.bg-green { background: #e8f5e9; }
.bg-orange { background: #fff3e0; }
.bg-purple { background: #f3e5f5; }

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 14px;
  color: #999;
  margin-top: 4px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dashboard-card h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
}

/* 表格 */
.table-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  font-weight: 500;
  color: #666;
  font-size: 14px;
  background: #fafafa;
}

.data-table td {
  font-size: 14px;
  color: #333;
}

.data-table tr:hover {
  background: #fafafa;
}

.data-table .empty {
  text-align: center;
  color: #999;
  padding: 40px;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.status-active {
  background: #e8f5e9;
  color: #4caf50;
}

.status-pending {
  background: #fff3e0;
  color: #ff9800;
}

.status-completed {
  background: #e3f2fd;
  color: #1976d2;
}

/* 表单 */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  max-width: 800px;
}

.form-card h3 {
  font-size: 18px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6A5ACD;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

/* 标签输入 */
.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  min-height: 44px;
}

.tags-input .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.tag-remove {
  cursor: pointer;
  font-weight: bold;
}

.tags-input input {
  border: none;
  flex: 1;
  min-width: 120px;
  padding: 6px;
}

/* 教练头像样式 - 固定尺寸防止铺满 */
.avatar-small {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.tags-input input:focus {
  outline: none;
}

/* 按钮 */
.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  padding: 12px 24px;
  background: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e8e8e8;
}

/* 页面头部 */
.page-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  width: 280px;
}

.search-box button {
  padding: 10px 20px;
  background: #6A5ACD;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 100px 40px;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.empty-state p {
  color: #999;
  font-size: 16px;
}

/* 弹窗 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}

/* 筛选框 */
.filter-box {
  display: flex;
  gap: 12px;
}

.filter-box select,
.filter-box input {
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
}

.pagination button {
  padding: 8px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.pagination button:hover {
  background: #e8e8e8;
}

.pagination button.active {
  background: #6A5ACD;
  color: #fff;
}

/* 详情区块 */
.detail-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

.detail-section p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.detail-section p label {
  color: #999;
  margin-right: 8px;
}

/* 详情弹窗样式 */
.detail-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row label {
  width: 100px;
  color: #666;
  font-size: 14px;
}

.detail-row span {
  flex: 1;
  color: #333;
  font-size: 14px;
}

/* 会员详情样式 */
.member-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.member-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.member-info-large h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 4px;
}

.member-info-large p {
  font-size: 14px;
  color: #999;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h5 {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}

.empty-text {
  color: #999;
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

/* 响应式 */
@media (max-width: 1200px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 64px;
  }
  .logo-text,
  .nav-item span:not(.nav-icon) {
    display: none;
  }
  .main-content {
    margin-left: 64px;
  }
  .stats-cards {
    grid-template-columns: 1fr;
  }
}

/* 教练管理页面优化 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.header-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-hint {
  background: #e3f2fd;
  padding: 8px 16px;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.hint-text {
  color: #1976d2;
  font-size: 14px;
}

/* 按钮样式优化 */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #e8e8e8;
  color: #333;
}

/* 选择框样式 */
.form-group select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

/* 课程时段配置样式 */
.schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.schedule-row select.schedule-day {
  width: 100px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.schedule-row select.schedule-start-time,
.schedule-row select.schedule-end-time {
  width: 90px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.schedule-row .time-separator {
  color: #666;
  font-size: 14px;
  padding: 0 4px;
}

.schedule-row button {
  padding: 6px 12px;
  background: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s;
}

.schedule-row button:hover {
  background: #ffcdd2;
}

#course-schedule-container {
  margin-bottom: 8px;
}

/* ==================== 时段规则配置 ==================== */

.schedule-rule-section {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.weekday-selector {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 8px;
}

.weekday-pill {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.weekday-pill:hover {
  border-color: #6a5acd;
  color: #6a5acd;
}

.weekday-pill.selected {
  background: #6a5acd;
  border-color: #6a5acd;
  color: #fff;
}

.schedule-preview-section {
  background: #f0f9ff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #bae6fd;
}

.schedule-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.schedule-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.schedule-preview-item .slot-info {
  font-size: 14px;
  color: #374151;
}

.schedule-preview-item .slot-info .day-name {
  font-weight: 500;
  color: #6a5acd;
}

.schedule-preview-item .btn-remove {
  padding: 4px 10px;
  font-size: 12px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.schedule-preview-item .btn-remove:hover {
  background: #fecaca;
}

.schedule-manual-section {
  background: #fff7ed;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #fed7aa;
}

.schedule-mode-toggle .btn-text {
  font-size: 13px;
  color: #6a5acd;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.schedule-mode-toggle .btn-text:hover {
  color: #5a4abf;
}

/* ==================== 导航子菜单 ==================== */

.nav-group {
  position: relative;
}

.nav-submenu {
  padding-left: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 44px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 13px;
}

.nav-subitem:hover,
.nav-subitem.active {
  color: #fff;
  background: rgba(106, 90, 205, 0.15);
}

.nav-subitem .nav-icon {
  font-size: 16px;
  width: 20px;
}

/* ==================== 教练排班样式 ==================== */

.coach-schedule-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.coach-schedule-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.coach-schedule-header h4 {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.coach-schedule-table {
  width: 100%;
}

.coach-schedule-table .data-table {
  width: 100%;
  border-collapse: collapse;
}

.coach-schedule-table .data-table th,
.coach-schedule-table .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.coach-schedule-table .data-table th {
  font-weight: 500;
  color: #666;
  font-size: 14px;
  background: #fafafa;
}

.coach-schedule-table .data-table td {
  font-size: 14px;
  color: #333;
}

.coach-schedule-table .data-table tr:hover {
  background: #fafafa;
}

.coach-schedule-table .empty-cell {
  text-align: center;
  color: #999;
  padding: 24px;
}

/* ==================== 绩效奖金结算样式 ==================== */

.payroll-table th,
.payroll-table td {
  text-align: center;
}

.payroll-row {
  cursor: pointer;
}

.payroll-row:hover {
  background: #f8f9fa;
}

.payroll-detail {
  background: #fafafa;
}

.payroll-detail-content {
  display: flex;
  gap: 40px;
  padding: 20px;
}

.payroll-detail-content .detail-section {
  flex: 1;
}

.payroll-detail-content .detail-section h5 {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.payroll-detail-content .detail-section p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.payroll-detail-content .detail-section p strong {
  color: #333;
  font-size: 14px;
}

/* 绩效奖金状态栏 */
.payroll-status-bar {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.payroll-status-bar .status-label {
  font-size: 14px;
  color: #666;
}

.payroll-status-bar .status-text {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}

.payroll-status-bar .status-text.status-pending {
  color: #faad14;
  background: #fff7e6;
}

.payroll-status-bar .status-text.status-processing {
  color: #1890ff;
  background: #e6f7ff;
}

.payroll-status-bar .status-text.status-completed {
  color: #52c41a;
  background: #f6ffed;
}

.payroll-status-bar .status-text.status-closed {
  color: #999;
  background: #f5f5f5;
}

.payroll-status-bar .status-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.payroll-status-bar .payment-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payroll-status-bar .payment-form input {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  width: 150px;
}

.payroll-status-bar .payment-form input:focus {
  outline: none;
  border-color: #40a9ff;
}

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.status-pending {
  color: #faad14;
  background: #fff7e6;
}

.status-badge.status-processing {
  color: #1890ff;
  background: #e6f7ff;
}

.status-badge.status-completed {
  color: #52c41a;
  background: #f6ffed;
}

.status-badge.status-closed {
  color: #999;
  background: #f5f5f5;
}

/* 按钮样式补充 */
.btn-success {
  background: #52c41a;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-success:hover {
  background: #73d13d;
}

/* 大弹窗 */
.modal-large {
  max-width: 1000px;
  width: 90%;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .payroll-detail-content {
    flex-direction: column;
    gap: 20px;
  }

  .payroll-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .payroll-status-bar .status-actions {
    margin-left: 0;
    width: 100%;
  }

  .payroll-status-bar .payment-form {
    flex-wrap: wrap;
  }
}

/* ==================== 图片上传组件样式 ==================== */

.image-upload-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-preview {
  width: 120px;
  height: 120px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #fafafa;
  transition: all 0.3s ease;
}

.image-preview:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.image-preview.has-image {
  border-style: solid;
  border-color: #667eea;
}

.upload-placeholder {
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s;
  width: fit-content;
}

.btn-upload:hover {
  opacity: 0.9;
}

.btn-upload:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-hint {
  font-size: 12px;
  color: #999;
}

.upload-progress {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.upload-status {
  font-size: 12px;
  margin-top: 4px;
}

.upload-status.success {
  color: #52c41a;
}

.upload-status.error {
  color: #ff4d4f;
}

/* 大预览图样式（用于课程封面） */
#course-image-preview.image-preview {
  width: 200px;
  height: 120px;
}
