@import './default.css';

.day-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Header ───────────────────────────────────────────────────────────── */

.day-view__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.day-view__today-link {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .day-view__today-link {
    display: none;
  }
}

.day-view__date-input {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--textColor);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: background 0.15s, border-color 0.15s;
  width: auto !important;
}

.day-view__date-input:hover,
.day-view__date-input:focus {
  outline: none;
  background: var(--bgSurfaceHover);
  border-bottom-color: var(--accentColor);
}

.day-view__total {
  margin-left: auto;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--textMuted);
  white-space: nowrap;
}

/* ── List ─────────────────────────────────────────────────────────────── */

.day-view__list {
  display: flex;
  flex-direction: column;
}

.day-view__empty {
  color: var(--textMuted);
  font-size: var(--text-sm);
  padding: var(--space-6) 0;
}

/* ── Entry row ────────────────────────────────────────────────────────── */

.entry-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--borderColor);
}

.entry-row:first-child {
  border-top: 1px solid var(--borderColor);
}

.entry-row.colorscheme--success {
  background: var(--bgColor);
  border-color: var(--borderColor);
}

.entry-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.entry-row__project-name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.entry-row__task {
  font-size: var(--text-xs);
  color: var(--textMuted);
}

.entry-row__desc {
  font-size: var(--text-sm);
  color: var(--textMuted);
}

.entry-row__link {
  color: var(--accentColor);
  text-decoration: none;
}

.entry-row__link:hover {
  text-decoration: underline;
}

.entry-row__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.entry-row__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.entry-row__duration {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

@media (max-width: 640px) {
  .entry-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .entry-row__actions {
    justify-content: space-between;
  }

  .entry-row__duration {
    text-align: left;
  }
}

/* ── Deleted entries ──────────────────────────────────────────────────── */

.deleted-entries {
  margin-top: var(--space-6);
}

.deleted-entries__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--textMuted);
  margin-bottom: var(--space-2);
}

.deleted-entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--borderColor);
  opacity: 0.65;
}

.deleted-entry:first-of-type {
  border-top: 1px solid var(--borderColor);
}

.deleted-entry__description {
  font-size: var(--text-sm);
  color: var(--textColor);
  text-decoration: line-through;
}

.deleted-entry__meta {
  font-size: var(--text-xs);
  color: var(--textMuted);
}
