/* History 页面样式 */

.history-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.history-calendar__header {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  padding: var(--space-2);
  font-weight: 600;
}

.history-calendar__day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 150ms;
  min-height: 48px;
}

.history-calendar__day:hover {
  border-color: var(--color-primary);
}

.history-calendar__day--0 { background: var(--color-surface); }
.history-calendar__day--1 { background: rgba(102, 187, 106, 0.15); }
.history-calendar__day--2 { background: rgba(102, 187, 106, 0.35); }
.history-calendar__day--3 { background: rgba(102, 187, 106, 0.6); color: #fff; }
.history-calendar__day--4 { background: var(--color-success); color: #fff; }

.history-calendar__day--today {
  border-color: var(--color-primary);
  font-weight: 600;
}

.history-list {
  list-style: none;
}

.history-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.history-item__time {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  min-width: 50px;
}

.history-item__content {
  flex: 1;
}

.history-item__task {
  font-weight: 500;
}

.history-item__detail {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.history-item__success {
  color: var(--color-success);
}

.history-item__fail {
  color: var(--color-warn);
}

.history-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.history-month-nav__btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  color: var(--color-text);
  transition: all 150ms;
}

.history-month-nav__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.history-stats {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.history-month-label {
  font-weight: 600;
  font-size: var(--font-size-lg);
}
