.spelling-history-container {
  padding: 0.5rem 0;
  background: transparent;
}

.spelling-history-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: -0.01em;
}

.spelling-history-title i {
  color: #4f46e5;
  font-size: 1.25rem;
}

.history-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .history-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle status-colored indicator on the far left */
.history-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.history-item:has(.correct)::before {
  background: #10b981;
}

.history-item:has(.incorrect)::before {
  background: #ef4444;
}

.history-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.history-word-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.history-word {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.125rem;
}

.history-date {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.history-status {
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  min-width: 100px;
  text-align: center;
}

.history-status.correct {
  background: #dcfce7;
  color: #065f46;
  border: 1px solid #86efac;
}

.history-status.incorrect {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.history-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 2px dashed #e2e8f0;
}

.history-empty p {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 640px) {
  .history-item {
    padding: 1rem;
  }
  
  .history-status {
    min-width: 80px;
    padding: 0.25rem 0.5rem;
  }

  .history-word {
    font-size: 1rem;
  }
}
