/**
 * 工作台样式
 */

/* 统计卡片 */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-icon.purple { background: #F3E8FF; color: #7C3AED; }

.stat-trend {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 待办列表 */
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-page);
  border-radius: var(--radius);
  transition: var(--transition);
}

.todo-item:hover {
  background: var(--primary-light);
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.todo-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.todo-content {
  flex: 1;
}

.todo-title {
  font-size: 14px;
  color: var(--text-primary);
}

.todo-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.todo-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.todo-priority.high { background: var(--danger); }
.todo-priority.medium { background: var(--warning); }
.todo-priority.low { background: var(--success); }

/* 图表容器 */
.chart-container {
  width: 100%;
  height: 300px;
}

/* 仪表盘布局 */
.dashboard-grid {
  display: grid;
  gap: 20px;
}

.dashboard-row {
  display: grid;
  gap: 20px;
}

.dashboard-row.stats {
  grid-template-columns: repeat(5, 1fr);
}

.dashboard-row.main {
  grid-template-columns: 1fr 360px;
}

@media (max-width: 1200px) {
  .dashboard-row.stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-row.main {
    grid-template-columns: 1fr;
  }
}
