/* Activity Log Cards */
.activity-log-cards-container {
  width: 100%;
  margin-bottom: 1rem;
}

.activity-log-cards-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary, #4d4d4f);
  font-style: italic;
}

.activity-log-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.activity-log-card {
  background: var(--bg-card, #fff);
  border: 2px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-md, 0.75rem);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.activity-log-card:hover {
  box-shadow: 0 4px 16px rgba(242, 27, 35, 0.12);
  border-color: rgba(242, 27, 35, 0.3);
}

.activity-log-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(242, 27, 35, 0.08) 0%, rgba(242, 27, 35, 0.04) 100%);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.activity-log-card__timestamp {
  font-size: 0.8rem;
  color: var(--text-secondary, #4d4d4f);
  font-variant-numeric: tabular-nums;
}

.activity-log-card__title {
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  font-size: 1rem;
}

.activity-log-card__body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.activity-log-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.875rem;
}

.activity-log-card__label {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--text-secondary, #4d4d4f);
  min-width: 5.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}

.activity-log-card__value {
  color: var(--text-primary, #1a1a1a);
  word-break: break-word;
}

.activity-log-card__value--wrap {
  white-space: normal;
  max-width: 100%;
}

/* Night mode */
.night-mode .activity-log-cards-empty {
  color: rgba(255, 255, 255, 0.7);
}

.night-mode .activity-log-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.night-mode .activity-log-card:hover {
  border-color: rgba(242, 27, 35, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.night-mode .activity-log-card__header {
  background: rgba(242, 27, 35, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.night-mode .activity-log-card__timestamp {
  color: rgba(255, 255, 255, 0.7);
}

.night-mode .activity-log-card__title {
  color: rgba(255, 255, 255, 0.95);
}

.night-mode .activity-log-card__label {
  color: rgba(255, 255, 255, 0.65);
}

.night-mode .activity-log-card__value {
  color: rgba(255, 255, 255, 0.9);
}

/* View toggle night mode */
.night-mode .view-mode-toggle {
  background: #3a3838;
  border-color: rgba(255, 255, 255, 0.25);
}

.night-mode .view-mode-btn {
  color: rgba(255, 255, 255, 0.8);
}

.night-mode .view-mode-btn:hover {
  background: rgba(242, 27, 35, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.night-mode .view-mode-btn.active {
  background: #f21b23;
  color: white;
}

@media (max-width: 768px) {
  .activity-log-cards-grid {
    grid-template-columns: 1fr;
  }
}
