/* --- Content Dashboard --- */

.content-dashboard {
  padding: calc(var(--space-4xl) + var(--space-xl)) 0 var(--space-3xl);
  background: var(--color-surface);
}

.dashboard-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--space-2xl);
}

/* Stats cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.stat-card--warn {
  border-color: var(--color-red);
  background: rgba(192, 57, 43, 0.04);
}

.stat-card-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
}

.stat-card--warn .stat-card-number {
  color: var(--color-red);
}

.stat-card-label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filters */
.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.dashboard-filters select,
.dashboard-filters input {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
}

.dashboard-filters input {
  flex: 1;
  min-width: 12rem;
}

.dashboard-filters select:focus,
.dashboard-filters input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Table */
.dashboard-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.dashboard-table th {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
}

.dashboard-table th[data-sort]:hover {
  color: var(--color-accent);
}

.dashboard-table td {
  padding: var(--space-xs) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
  white-space: nowrap;
}

.dashboard-table tr:hover {
  background: var(--color-accent-subtle);
}

.dashboard-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  max-width: 20rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-link:hover {
  color: var(--color-accent);
}

.cell-warn {
  color: var(--color-red);
}

/* Type badges */
.type-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.type-badge--lounge { background: #e8f4f8; color: #1a6b8a; }
.type-badge--hotel { background: #f0e8f4; color: #6a1a8a; }
.type-badge--amenity-kit { background: #f4f0e8; color: #8a6a1a; }
.type-badge--flight { background: #e8f4e8; color: #1a8a2e; }
.type-badge--guide { background: #f4e8e8; color: #8a1a1a; }

/* Image badges */
.img-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

.img-badge--local { background: #e8f4e8; color: #1a8a2e; }
.img-badge--remote { background: #f4e8e8; color: #8a1a1a; }
.img-badge--none { background: var(--color-bg-deep); color: var(--color-text-tertiary); }

/* Status dot */
.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.status-dot--ok { background: #2d8a4e; }
.status-dot--warn { background: var(--color-red); }

/* Mobile */
@media (max-width: 768px) {
  .dashboard-table {
    font-size: 0.7rem;
  }

  .dashboard-table td,
  .dashboard-table th {
    padding: var(--space-xs) var(--space-sm);
  }
}
