/* ── recent.css — page-specific overrides ────────────────────────────────── */

/* Recent panel headers wrap on small screens to accommodate filter controls */
.settings-panel-header {
  flex-wrap: wrap;
  row-gap: 0.4rem;
  /* Slightly tighter vertical padding so filters don't feel cramped */
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

/* ── Per-section filter controls (right side of panel header) ────────────── */

.recent-filter-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Time-period pill group ──────────────────────────────────────────────── */

.time-filter-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

html.dark .time-filter-group {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.time-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.65rem;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
  min-height: 26px;
}

html.dark .time-filter-btn {
  color: rgba(255, 255, 255, 0.38);
}

.time-filter-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.07);
  color: rgba(0, 0, 0, 0.7);
}

html.dark .time-filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.time-filter-btn.active {
  background: var(--tcm-blue-color);
  color: white;
  box-shadow: 0 1px 4px rgba(99, 145, 210, 0.45);
}

.time-filter-btn[data-value="custom"] i.icon {
  margin: 0;
  font-size: 0.95em;
}

/* ── Custom date calendar input ──────────────────────────────────────────── */

.time-filter-custom {
  display: flex;
  align-items: center;
}

.time-filter-custom .ui.mini.input input {
  width: 140px;
  font-size: 0.82em !important;
  padding: 0.4em 0.5em 0.4em 2em !important;
}

/* ── Refresh icon button ─────────────────────────────────────────────────── */

.recent-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html.dark .recent-refresh-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.38);
}

.recent-refresh-btn:hover {
  background: rgba(99, 145, 210, 0.12);
  border-color: rgba(99, 145, 210, 0.4);
  color: var(--tcm-blue-color);
}

.recent-refresh-btn i.icon {
  margin: 0;
  font-size: 0.82em;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.recent-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 0.65rem;
}

.recent-empty-state > i.icon {
  font-size: 3em !important;
  color: var(--tcm-blue-color);
  opacity: 0.25;
  margin: 0 0 0.35rem !important;
  display: block;
}

.recent-empty-title {
  font-size: 1.05em;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}

html.dark .recent-empty-title {
  color: rgba(255, 255, 255, 0.45);
}

.recent-empty-desc {
  font-size: 0.88em;
  color: rgba(0, 0, 0, 0.35);
  max-width: 340px;
  line-height: 1.55;
}

html.dark .recent-empty-desc {
  color: rgba(255, 255, 255, 0.28);
}

.recent-empty-desc a {
  color: var(--tcm-blue-color);
  text-decoration: none;
}

.recent-empty-desc a:hover {
  text-decoration: underline;
}

/* ── Pagination breathing room ───────────────────────────────────────────── */

.settings-panel > section .ui.pagination.menu {
  margin-top: 1rem;
}
