* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6fa; }

/* Layout */
.app-layout { height: 100vh; display: flex; }
.app-aside {
  width: 220px; background: #1e293b; color: #cbd5e1; display: flex; flex-direction: column;
  transition: width 0.3s; overflow: hidden; flex-shrink: 0;
}
.app-aside.collapsed { width: 64px; }
.app-logo {
  height: 60px; display: flex; align-items: center; padding: 0 20px; gap: 10px;
  color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap;
}
.app-logo svg { flex-shrink: 0; }
.app-menu { flex: 1; overflow-y: auto; }
.app-menu .el-menu { border-right: none !important; background: transparent !important; }

.app-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.app-header {
  height: 60px; background: #fff; display: flex; align-items: center;
  padding: 0 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); justify-content: space-between;
  flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.collapse-btn { font-size: 20px; cursor: pointer; color: #64748b; }
.app-content { flex: 1; overflow-y: auto; padding: 20px; }

/* Cards */
.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);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.stat-icon {
  width: 56px; height: 56px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.stat-info h3 { font-size: 28px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.stat-info p { font-size: 13px; color: #94a3b8; margin-top: 4px; }

/* Page section */
.page-section { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: 18px; font-weight: 600; color: #1e293b; }

/* Chart */
.chart-container { width: 100%; height: 320px; }

/* Table */
.el-table { border-radius: 8px; }

/* Progress bar */
.progress-item { margin-bottom: 16px; }
.progress-item:last-child { margin-bottom: 0; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }

/* Badge colors */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-success { background: #d1fae5; color: #059669; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-default { background: #f1f5f9; color: #64748b; }

/* Phase timeline */
.phase-timeline { position: relative; padding-left: 28px; }
.phase-timeline::before {
  content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 2px; background: #e2e8f0;
}
.phase-item { position: relative; margin-bottom: 24px; }
.phase-item::before {
  content: ''; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; border: 3px solid #e2e8f0; background: #fff;
}
.phase-item.completed::before { border-color: #10b981; background: #10b981; }
.phase-item.in_progress::before { border-color: #f59e0b; background: #f59e0b; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
.empty-state .el-icon { font-size: 48px; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .app-aside { position: fixed; z-index: 1000; height: 100vh; }
  .stat-card { padding: 16px; }
  .stat-icon { width: 44px; height: 44px; font-size: 20px; }
  .stat-info h3 { font-size: 22px; }
}
