/* ── Layout base ─────────────────────────────────────────────────────────── */
body {
  background: #f0f2f5;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Sidebar filtri ──────────────────────────────────────────────────────── */
.sidebar {
  background: #fff;
  border-right: 1px solid #dee2e6;
  min-height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.filter-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #6c757d;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Pallino colore casa d'aste ──────────────────────────────────────────── */
.house-color-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.15);
}

.house-color-dot-lg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,.1);
}

/* ── Card calendario e timeline ──────────────────────────────────────────── */
.view-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── FullCalendar override ───────────────────────────────────────────────── */
.fc-event {
  cursor: pointer;
  border-radius: 4px !important;
  border: none !important;
  padding: 1px 4px;
}

.fc-event-title {
  font-size: 0.78rem;
  font-weight: 600;
}

.fc-daygrid-event-dot {
  display: none;
}

.fc-toolbar-title {
  font-size: 1.1rem !important;
  font-weight: 700;
}

/* ── vis-timeline override ───────────────────────────────────────────────── */
.vis-timeline {
  border: 1px solid #dee2e6 !important;
  border-radius: 8px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.vis-item {
  border-radius: 4px !important;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff !important;
  border-width: 0 !important;
  padding: 2px 6px;
}

.vis-item.vis-selected {
  filter: brightness(0.85);
}

.vis-label {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 8px;
}

.vis-group {
  border-bottom: 1px solid #f0f2f5;
}

.vis-time-axis .vis-text {
  font-size: 0.75rem;
  color: #6c757d;
}

.vis-current-time {
  background-color: #dc3545 !important;
  width: 2px !important;
}

/* ── Badge tipologia ─────────────────────────────────────────────────────── */
.badge-live     { background: #198754; color: #fff; }
.badge-online   { background: #0d6efd; color: #fff; }
.badge-timed    { background: #6f42c1; color: #fff; }
.badge-silent   { background: #fd7e14; color: #fff; }
.badge-altro    { background: #6c757d; color: #fff; }

/* ── Badge status ────────────────────────────────────────────────────────── */
.badge-upcoming { background: #0d6efd; color:#fff; }
.badge-active   { background: #198754; color:#fff; }
.badge-ended    { background: #6c757d; color:#fff; }

/* ── Modal dettaglio ─────────────────────────────────────────────────────── */
.modal-auction-header {
  border-left: 5px solid var(--house-color, #3788d8);
}

.detail-table td:first-child {
  width: 120px;
  font-weight: 600;
  color: #495057;
}

/* ── Bottone view ────────────────────────────────────────────────────────── */
.view-btn.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* ── Stats badge ─────────────────────────────────────────────────────────── */
#stats-count {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* ── Admin cards ─────────────────────────────────────────────────────────── */
.house-card {
  transition: box-shadow .15s;
}

.house-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    height: auto;
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }

  .view-card {
    padding: 12px;
  }
}
