/* ═══════════════════════════════════════════════
   voyant-dashboard-recent-consultations.css
   Glassmorphism theme
   ═══════════════════════════════════════════════ */

/* ── Period filters ── */
.vd-period-filters-card {
  padding: 20px 24px;
}
.vd-period-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vd-period-pill {
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--vd-text-secondary) !important;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--vd-glass-border);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.vd-period-pill:hover {
  color: var(--vd-text-primary);
  background: var(--vd-glass-bg-hover);
  border-color: var(--vd-glass-border-hover);
}
.vd-period-pill.active {
  background: var(--vd-accent-violet);
  color: #fff;
  border-color: var(--vd-accent-violet);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.35);
}

.vd-period-pill--month {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.vd-period-divider {
  width: 1px;
  height: 24px;
  background: var(--vd-glass-border);
  margin: 0 4px;
  flex-shrink: 0;
}


/* ── Year selector ── */
.vd-year-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vd-glass-border);
}
.vd-year-pill {
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgb(167 139 250) !important;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--vd-glass-border);
  transition: all 0.3s ease;
}
.vd-year-pill:hover {
  color: var(--vd-text-primary);
  background: var(--vd-glass-bg-hover);
  border-color: var(--vd-glass-border-hover);
}
.vd-year-pill.active {
  background: var(--vd-accent-teal);
  color: #0f0a1e;
  border-color: var(--vd-accent-teal);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.3);
  font-weight: 600;
}

.vd-period-pill--year {
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(94, 234, 212, 0.25);
}
.vd-period-pill--year:hover {
  background: rgba(94, 234, 212, 0.18);
  border-color: var(--vd-accent-teal);
}
.vd-period-pill--year.active {
  background: var(--vd-accent-teal);
  color: #0f0a1e;
  border-color: var(--vd-accent-teal);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.35);
}


/* ── Empty state ── */
.vd-empty-state {
  text-align: center;
  padding: 48px 24px;
}
.vd-empty-state__icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}
.vd-empty-state p {
  color: var(--vd-text-secondary);
  font-size: 0.95rem;
}


/* ── Table card ── */
.vd-table-card {
  padding: 0;
  overflow: hidden;
}
.vd-table-wrapper {
  overflow-x: auto;
}

.vd-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

/* Header */
.vd-table thead th {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(94, 234, 212, 0.1));
  color: #222222;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
  border-bottom: 1px solid var(--vd-glass-border);
}

/* Body */
.vd-table tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--vd-glass-border) !important;
  color: var(--vd-text-secondary) !important;
  transition: all 0.2s ease;
}
.vd-table tbody tr:hover td {
  background: var(--vd-glass-bg-hover);
  color: var(--vd-text-primary);
}
.vd-table tbody tr:last-child td {
  border-bottom: none;
}

/* Gain column accent */
.vd-table__gain {
  color: var(--vd-accent-teal) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Footer / Total */
.vd-table tfoot td {
  background: rgba(167, 139, 250, 0.08);
  padding: 16px 20px;
  font-weight: 700;
  border-top: 1px solid var(--vd-glass-border);
  color: var(--vd-text-primary) !important;
}
.vd-table tfoot td:first-child {
  text-align: right;
}
.vd-table__total {
  color: var(--vd-accent-amber) !important;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}


/* ── Pagination ── */
.vd-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.vd-pagination__item {
  padding: 8px 14px;
  border: 1px solid var(--vd-glass-border);
  border-radius: var(--vd-radius-sm, 12px);
  text-decoration: none;
  color: var(--vd-text-secondary) !important;
  font-size: 0.85rem;
  background: var(--vd-glass-bg);
  transition: all 0.25s ease;
  cursor: pointer;
}
.vd-pagination__item:hover {
  background: var(--vd-glass-bg-hover);
  border-color: var(--vd-glass-border-hover);
  color: var(--vd-text-primary);
}
.vd-pagination__item.active {
  background: var(--vd-accent-violet);
  color: #fff;
  border-color: var(--vd-accent-violet);
  cursor: default;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}


/* ── Responsive ── */
@media (max-width: 768px) {
  .vd-table { min-width: 580px; }
  .vd-period-pill { padding: 6px 10px; font-size: 0.75rem; }
  .vd-period-pill--month { padding: 5px 8px; font-size: 0.72rem; }
}

@media (max-width: 500px) {
  .vd-period-filters { gap: 6px; }
  .vd-period-divider { display: none; }
}
