/* ═══════════════════════════════════════
   ADMIN PANEL — Stile demo.tailadmin.com
   ═══════════════════════════════════════ */

/* ═══ DASHBOARD EXTRAS ═══ */
.dash-welcome {
  margin-bottom: 24px;
}
.dash-welcome h2 {
  font-size: 1.3rem; font-weight: 800; margin-bottom: 4px;
}
.dash-welcome p {
  font-size: .88rem; color: var(--text-tertiary);
}

.quick-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.quick-action {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md);
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600;
  transition: all .2s var(--ease); cursor: pointer;
}
.quick-action:hover {
  border-color: var(--accent); background: var(--accent-muted);
  transform: translateY(-1px);
}
.quick-action-icon { font-size: 1.1rem; }

.vetrina-url {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg-4); border: 1px solid var(--border);
  margin-bottom: 24px;
}
.vetrina-url-label {
  font-size: .78rem; font-weight: 600; color: var(--text-tertiary);
  margin-right: 4px; white-space: nowrap;
}
.vetrina-url-link {
  font-family: var(--font-mono); font-size: .82rem;
  color: var(--accent); flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.vetrina-url-copy {
  padding: 5px 12px; border-radius: var(--r-sm);
  background: var(--accent-muted); color: var(--accent);
  font-size: .75rem; font-weight: 600;
  transition: all .2s; white-space: nowrap;
}
.vetrina-url-copy:hover {
  background: var(--accent); color: #fff;
}

/* ═══ VETRINA CONFIG ═══ */
.vetrina-preview {
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  text-align: center; margin-top: 16px;
}
.vetrina-preview-emoji { font-size: 3rem; margin-bottom: 8px; }
.vetrina-preview-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.vetrina-preview-desc { font-size: .82rem; color: var(--text-tertiary); }

/* ═══ TESSERE CONFIG ═══ */
.loyalty-config-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.level-config {
  padding: 16px; border-radius: var(--r-lg);
  background: var(--bg-4); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.level-emoji { font-size: 1.5rem; }
.level-info { flex: 1; }
.level-name { font-weight: 700; font-size: .88rem; }
.level-detail { font-size: .75rem; color: var(--text-tertiary); }

/* ═══ CLIENTS LIST (Tab 4) ═══ */
.client-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r-lg);
  background: var(--bg-3); border: 1px solid var(--border);
  margin-bottom: 8px; transition: all .2s;
}
.client-card:hover { border-color: var(--border-hover); }
.client-info { flex: 1; min-width: 0; }
.client-name { font-weight: 700; font-size: .9rem; }
.client-phone { font-size: .78rem; color: var(--text-tertiary); font-family: var(--font-mono); }
.client-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.client-progress { width: 120px; }
.client-progress-label { font-size: .68rem; color: var(--text-muted); margin-bottom: 4px; font-family: var(--font-mono); }
.client-actions { display: flex; gap: 6px; }
.client-last-visit { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ═══ STATS (Tab 6) ═══ */
.top-clients { margin-top: 16px; }
.top-client {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-md);
  margin-bottom: 6px; transition: background .15s;
}
.top-client:hover { background: var(--bg-4); }
.top-rank {
  width: 28px; height: 28px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; font-family: var(--font-mono);
  flex-shrink: 0;
}
.top-rank.r1 { background: rgba(255,215,0,.15); color: #FFD700; }
.top-rank.r2 { background: rgba(192,192,192,.15); color: #C0C0C0; }
.top-rank.r3 { background: rgba(205,127,50,.15); color: #CD7F32; }
.top-rank.r4, .top-rank.r5 { background: var(--bg-5); color: var(--text-muted); }
.top-name { flex: 1; font-weight: 600; font-size: .88rem; }
.top-val { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; color: var(--accent); }

/* ═══ REVIEW FILTERS ═══ */
.review-filters {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.review-filter-btns { display: flex; gap: 8px; }

/* ═══ TOPBAR EXTRAS ═══ */
.topbar-profile {
  display: flex; align-items: center; gap: 10px;
  padding-left: 12px; border-left: 1px solid var(--border);
  margin-left: 4px; cursor: pointer;
}
.topbar-profile-info { display: flex; flex-direction: column; }
.topbar-profile-name { font-weight: 600; font-size: .82rem; line-height: 1.2; }
.topbar-profile-role { font-size: .68rem; color: var(--text-tertiary); }

/* ═══ MOBILE OVERLAY ═══ */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .loyalty-config-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .quick-actions { flex-direction: column; }
  .vetrina-url { flex-wrap: wrap; }
  .client-card { flex-wrap: wrap; }
  .client-progress { width: 100%; }
}
