/* ============================================
   JHONN BARBER SISTEMA — MAIN CSS
   Design System: Dark-first, Gold Accent
   ============================================ */

:root {
  --bg-base: #000000;
  --bg-card: #080808;
  --bg-elevated: #121212;
  --bg-hover: #1c1c1c;
  --border: #222222;
  --border-light: #333333;

  --gold: #FFD700;
  --gold-light: #ffeb3b;
  --gold-dark: #b8860b;
  --gold-glow: rgba(255,215,0,0.12);

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  --green: #22c55e;
  --green-bg: rgba(34,197,94,0.1);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.1);
  --blue: #3b82f6;
  --blue-bg: rgba(59,130,246,0.1);
  --amber: #f59e0b;
  --amber-bg: rgba(245,158,11,0.1);
  --purple: #a855f7;

  --sidebar-w: 240px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 20px rgba(255,215,0,0.2);

  --font: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --transition: 0.2s ease;
}

.light-mode {
  --bg-base: #f4f4f8;
  --bg-card: #ffffff;
  --bg-elevated: #ebebf5;
  --bg-hover: #e0e0ee;
  --border: #d8d8e8;
  --border-light: #c8c8dc;
  --text-primary: #12121a;
  --text-secondary: #5a5a78;
  --text-muted: #9090a8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body.auth-checking {
  overflow: hidden;
}

body.auth-checking .screen,
body.auth-checking #barbara-container,
body.auth-login #barbara-container {
  display: none !important;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

/* ── SCREENS ── */
.screen { display: none; width: 100%; min-height: 100vh; }
.screen.hidden { display: none !important; }
.screen.active { display: flex; }

/* ── LOGIN ── */
.login-bg {
  width: 100%; min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0f 0%, #12121e 50%, #1a1208 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.login-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(255,215,0,0.08) 0%, transparent 70%);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow), var(--shadow-gold);
  position: relative; z-index: 1;
  animation: fadeUp 0.5s ease;
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-gold);
}
.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-badge.sm { width: 40px; height: 40px; border-radius: 8px; border-width: 1px; margin-bottom: 0; }
.login-brand { font-family: var(--font-display); font-size: 1.8rem; color: var(--text-primary); }
.login-brand span { color: var(--gold); }
.login-tagline { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.2rem; letter-spacing: 0.05em; text-transform: uppercase; }
.login-hint { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }

/* ── FORM FIELDS ── */
.field-group { margin-bottom: 1.1rem; }
.field-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.4rem; }
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; opacity: 0.5; pointer-events: none; }

input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], input[type="time"],
input[type="tel"], textarea, select {
  width: 100%; padding: 0.65rem 0.9rem 0.65rem 2.2rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font); font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:not(.input-icon-wrap input):not(.search-input), textarea, select { padding-left: 0.9rem; }
.input-icon-wrap input { padding-left: 2.4rem; }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-primary.full { width: 100%; }
.btn-primary.sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); background: transparent;
  color: var(--text-secondary); font-size: 0.88rem; cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.btn-outline.sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-ghost {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 0.88rem; padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; font-size: 1rem;
  transition: all var(--transition); flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg-hover); border-color: var(--gold); color: var(--gold); }
.btn-danger {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  background: var(--red-bg); border: 1px solid var(--red);
  color: var(--red); font-size: 0.85rem; cursor: pointer; transition: all var(--transition);
}
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-success {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  background: var(--green-bg); border: 1px solid var(--green);
  color: var(--green); font-size: 0.85rem; cursor: pointer; transition: all var(--transition);
}
.btn-success:hover { background: var(--green); color: #fff; }

/* ── APP LAYOUT ── */
#screen-app.active { display: flex; }
.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; z-index: 100;
  transition: transform var(--transition);
}
.sidebar-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1.1rem 1rem; border-bottom: 1px solid var(--border);
}
.sidebar-brand { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); flex: 1; }
.sidebar-toggle { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }

.sidebar-nav { flex: 1; padding: 0.8rem 0.6rem; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(255,215,0,0.2); }
.nav-icon { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 0.8rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.user-info { display: flex; align-items: center; gap: 0.6rem; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-details { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.user-role { display: block; font-size: 0.72rem; color: var(--text-muted); }
.sidebar-actions { display: flex; gap: 0.4rem; }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh; flex: 1;
  display: flex; flex-direction: column;
  background: var(--bg-base);
}

/* 🧠 BÁRBARA IA STYLES */
.barbara-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.barbara-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
  position: relative;
  transition: transform 0.3s ease;
}

.barbara-btn:hover { transform: scale(1.1); }

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold);
  animation: ai-pulse 2s infinite;
  opacity: 0.5;
  z-index: -1;
}

@keyframes ai-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.barbara-window {
  width: 350px;
  height: 500px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.barbara-window.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.barbara-header {
  padding: 1.2rem;
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.barbara-avatar {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.barbara-name { font-weight: 700; color: var(--gold); }
.barbara-status { font-size: 0.75rem; color: var(--text-muted); }

.barbara-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ai-msg, .user-msg {
  max-width: 85%;
  padding: 0.8rem 1.2rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.ai-msg {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-bottom-left-radius: 0.2rem;
}

.user-msg {
  align-self: flex-end;
  background: var(--gold);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 0.2rem;
}

.barbara-input-area {
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.barbara-input-area input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  color: #fff;
}

.barbara-input-area button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ai-suggestions button {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-suggestions button:hover {
  background: var(--gold);
  color: #000;
}

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h); background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; position: sticky; top: 0; z-index: 50;
  gap: 1rem;
}
.topbar-left { display: flex; align-items: center; gap: 0.8rem; }
.hamburger { display: none; }
#page-title { font-size: 1.1rem; font-weight: 700; }
.topbar-date { display: block; font-size: 0.75rem; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 0.8rem; }
.topbar-kpis { display: flex; gap: 0.5rem; }
.kpi-badge {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-secondary);
}
.kpi-value { font-weight: 600; color: var(--gold); }

/* ── NOTIFICATION BELL ── */
.notification-bell {
  position: relative; cursor: pointer; font-size: 1.1rem;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border);
  transition: all var(--transition);
}
.notification-bell:hover { border-color: var(--gold); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff; font-size: 0.65rem;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.notif-panel {
  position: fixed; top: var(--topbar-h); right: 0;
  width: 320px; max-height: 480px; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); z-index: 200;
  padding: 1rem;
}
.notif-panel.hidden { display: none; }
.notif-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.notif-header h4 { font-size: 0.9rem; font-weight: 600; }
.notif-header button { background: none; border: none; cursor: pointer; color: var(--text-muted); }

/* ── PAGES ── */
.pages-wrap { flex: 1; padding: 1.5rem; overflow-y: auto; }
.page { display: flex; flex-direction: column; gap: 1.2rem; }
.page.hidden { display: none; }

/* ── PAGE HEADER ── */
.page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.page-header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ── SEARCH BAR ── */
.search-bar-wrap { flex: 1; max-width: 440px; }
.search-input {
  width: 100%; padding: 0.6rem 1rem; padding-left: 0.9rem !important;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.88rem; outline: none; transition: all var(--transition);
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

/* ── CARDS ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem;
}
.card-title { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.card-value { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.card-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── STATS ROW ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }

/* ── TABLE ── */
.table-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.data-table th {
  padding: 0.75rem 1rem; text-align: left;
  background: var(--bg-elevated); color: var(--text-muted);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem;
  border-radius: 99px; font-size: 0.72rem; font-weight: 600;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-gold { background: var(--gold-glow); color: var(--gold); }
.badge-purple { background: rgba(168,85,247,0.1); color: var(--purple); }
.badge-gray { background: var(--bg-elevated); color: var(--text-muted); }

/* ── SELECT SM ── */
.select-sm { padding: 0.45rem 0.8rem; font-size: 0.82rem; padding-left: 0.8rem !important; width: auto; }

/* ── TABS ── */
.financeiro-tabs, .relatorios-tabs {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); padding-bottom: 0.5rem;
}
.tab-btn {
  padding: 0.5rem 1.1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid transparent; border-bottom: none;
  background: none; color: var(--text-muted);
  font-size: 0.87rem; font-weight: 500; cursor: pointer; transition: all var(--transition);
}
.tab-btn:hover { color: var(--text-primary); background: var(--bg-elevated); }
.tab-btn.active { background: var(--bg-card); color: var(--gold); border-color: var(--border); border-bottom: 1px solid var(--bg-card); margin-bottom: -1px; }
.tab-content { display: flex; flex-direction: column; gap: 1rem; }
.tab-content.hidden { display: none; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 1rem;
}
.modal-overlay.hidden { display: none !important; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 540px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  animation: fadeUp 0.2s ease;
}
.modal.modal-lg { max-width: 720px; }
.modal.modal-xl { max-width: 900px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.1rem; transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.6rem; }

/* ── FORM GRID ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }

/* ── TOAST ── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem; z-index: 9999;
}
.toast {
  padding: 0.75rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 0.87rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.5rem;
  animation: slideIn 0.3s ease; min-width: 250px;
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.warning { border-color: var(--amber); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.5; }
}
.animate-in { animation: fadeUp 0.3s ease; }
.pulse { animation: pulse 2s infinite; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.empty-state .empty-icon { font-size: 2.5rem; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-240px); width: 240px; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.5); }
  .sidebar-toggle { display: block; }
  .hamburger { display: inline-flex !important; }
  .main-content { margin-left: 0 !important; }
  .topbar-kpis { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}
/* 📸 VISAGISMO VISION STYLES */
.visagismo-camera-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.camera-preview {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.camera-preview video, .camera-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-controls {
  display: flex;
  gap: 1rem;
}

.dossie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.dossie-item {
  background: var(--bg-elevated);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.dossie-item strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.dossie-text {
  margin-top: 1rem;
  background: rgba(255, 215, 0, 0.03);
  padding: 1.2rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  line-height: 1.6;
}

.visagismo-result {
  animation: fadeUp 0.5s ease;
  width: 100%;
}
