/* ==========================================
   Central Completa da Páscoa - Premium SaaS
   ========================================== */

:root {
  /* Easter Pastel Palette */
  --purple: #8B5CF6;
  --purple-light: #EDE9FE;
  --purple-soft: #C4B5FD;
  --green: #10B981;
  --green-light: #D1FAE5;
  --blue: #3B82F6;
  --blue-light: #DBEAFE;
  --pink: #EC4899;
  --pink-light: #FCE7F3;
  --yellow: #F59E0B;
  --yellow-light: #FEF3C7;

  /* Neutrals */
  --bg: #F8F7FF;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --border: #E9E5F5;
  --text: #1E1B4B;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  /* Sidebar */
  --sidebar-w: 270px;
  --sidebar-collapsed: 0px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(139,92,246,0.06);
  --shadow-md: 0 4px 12px rgba(139,92,246,0.08);
  --shadow-lg: 0 8px 30px rgba(139,92,246,0.12);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(139,92,246,0.06);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0F0D1A;
  --bg-card: #1A1726;
  --bg-sidebar: #13111D;
  --border: #2D2640;
  --text: #F1F0F7;
  --text-secondary: #A5A0B8;
  --text-muted: #6B6580;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple-soft); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  font-size: 28px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-light);
  border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 0.95rem; color: var(--text); letter-spacing: -0.3px; }
.brand-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 12px; }
.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  padding: 16px 12px 6px;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.nav-item i { width: 18px; text-align: center; font-size: 0.9rem; }
.nav-item:hover { background: var(--purple-light); color: var(--purple); }
.nav-item.active {
  background: linear-gradient(135deg, var(--purple), #7C3AED);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}
[data-theme="dark"] .nav-item:hover { background: rgba(139,92,246,0.15); }

.nav-badge {
  margin-left: auto;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); color: #fff; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.sidebar-footer-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  border-radius: var(--radius-sm);
}
[data-theme="dark"] .sidebar-footer-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.15));
}
.footer-icon { font-size: 20px; }
.footer-text { display: flex; flex-direction: column; }
.footer-text strong { font-size: 0.78rem; color: var(--text); }
.footer-text small { font-size: 0.68rem; color: var(--text-muted); }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  transition: var(--transition);
}

/* ===== TOP NAV ===== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
}
[data-theme="dark"] .top-nav { background: rgba(26,23,38,0.9); }

.top-nav-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.bc-home { color: var(--text-muted); }
.bc-sep { color: var(--text-muted); font-size: 0.75rem; }
.bc-current { color: var(--text); font-weight: 600; }

.top-nav-right { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  transition: var(--transition);
}
.search-box:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }
.search-box i { color: var(--text-muted); font-size: 0.85rem; }
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-muted); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.nav-btn:hover { border-color: var(--purple); color: var(--purple); }

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===== CONTENT AREA ===== */
.content-area { padding: 32px; max-width: 1300px; }

/* ===== SECTION PAGES ===== */
.section-page { display: none; animation: fadeUp 0.35s ease; }
.section-page.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.section-subtitle { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; font-weight: 400; }
.easter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
}

/* ===== KPI CARDS ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 28px; }

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.kpi-purple .kpi-icon { background: var(--purple-light); color: var(--purple); }
.kpi-green .kpi-icon { background: var(--green-light); color: var(--green); }
.kpi-blue .kpi-icon { background: var(--blue-light); color: var(--blue); }
.kpi-pink .kpi-icon { background: var(--pink-light); color: var(--pink); }

.kpi-info { display: flex; flex-direction: column; }
.kpi-label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }
.kpi-value { font-size: 1.5rem; font-weight: 800; margin: 4px 0; letter-spacing: -0.5px; }
.kpi-change { font-size: 0.72rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.kpi-change.positive { color: var(--green); }
.kpi-change.negative { color: #EF4444; }
.kpi-change.neutral { color: var(--text-muted); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.card-header h3 i { color: var(--purple); font-size: 0.95rem; }
.card-body { padding: 24px; }

.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== SUMMARY LIST ===== */
.summary-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.summary-item span { color: var(--text-secondary); }
.summary-item strong { font-weight: 700; }
.text-green { color: var(--green) !important; }

.progress-bar-wrap {
  height: 8px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* ===== QUICK GRID ===== */
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.quick-btn i { font-size: 1.3rem; color: var(--purple); }
.quick-btn:hover {
  border-color: var(--purple);
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== TOOLS GRID ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 24px; }

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-soft);
}
.tool-card h4 { font-size: 0.92rem; font-weight: 700; margin: 14px 0 6px; color: var(--text); }
.tool-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

.tool-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.tool-icon.purple { background: var(--purple-light); color: var(--purple); }
.tool-icon.green { background: var(--green-light); color: var(--green); }
.tool-icon.blue { background: var(--blue-light); color: var(--blue); }
.tool-icon.pink { background: var(--pink-light); color: var(--pink); }

/* ===== TOOL PANELS ===== */
.tool-panel { display: none; animation: fadeUp 0.3s ease; }
.tool-panel.active { display: block; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 16px;
  transition: var(--transition);
  font-family: inherit;
}
.back-btn:hover { border-color: var(--purple); color: var(--purple); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-range {
  width: calc(100% - 60px);
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 10px;
  outline: none;
  vertical-align: middle;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple);
  cursor: pointer;
}
.range-val {
  font-weight: 700;
  color: var(--purple);
  margin-left: 8px;
  font-size: 0.88rem;
}

select.form-input {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), #7C3AED);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,92,246,0.4); }
.btn-secondary {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-danger { background: #FEE2E2; color: #EF4444; }
.btn-danger:hover { background: #FECACA; }
.btn-success { background: var(--green-light); color: var(--green); }
.btn-success:hover { background: #A7F3D0; }

/* ===== RESULT BOX ===== */
.result-box {
  margin-top: 20px;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
  transition: var(--transition);
}
.result-box:not(:empty) {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.result-box h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.result-box .r-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.result-box .r-row:last-child { border-bottom: none; }
.result-box .r-row span:first-child { color: var(--text-secondary); }
.result-box .r-row strong { font-weight: 700; }
.result-box .r-highlight {
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--purple);
}
[data-theme="dark"] .result-box .r-highlight {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.15));
}

/* ===== HELP TEXT ===== */
.help-text { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 8px; }

/* ===== PRODUCT ROWS ===== */
.prod-row, .combo-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.combo-row { grid-template-columns: 2fr 1fr 1fr; }

/* ===== TASKS ===== */
.task-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.task-input-row .form-input { flex: 1; }
.task-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.task-list {}
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg-card);
  transition: var(--transition);
}
.task-item:hover { border-color: var(--purple-soft); }
.task-item.done { opacity: 0.5; }
.task-item.done .task-text { text-decoration: line-through; }
.task-check {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.task-check.checked { background: var(--green); border-color: var(--green); color: #fff; font-size: 0.65rem; }
.task-text { flex: 1; font-size: 0.88rem; }
.task-delete {
  background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px;
  font-size: 0.85rem; transition: var(--transition);
}
.task-delete:hover { color: #EF4444; }
.task-stats { margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }

/* ===== CRONOGRAMA ===== */
.crono-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.crono-day {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.crono-day h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crono-day textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg-card);
  font-family: inherit;
  resize: vertical;
}
.crono-day textarea:focus { outline: none; border-color: var(--purple); }

/* ===== CHECKLIST ===== */
.checklist-group { margin-bottom: 24px; }
.checklist-group h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.checklist-group h4 i { color: var(--purple); }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.check-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--purple);
  cursor: pointer;
}
.check-item.checked-item { text-decoration: line-through; opacity: 0.5; }

/* ===== VENDAS CONTENT ===== */
.script-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg);
  transition: var(--transition);
}
.script-card:hover { border-color: var(--purple-soft); }
.script-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.script-card h4 .badge-cat {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.badge-whatsapp { background: #D1FAE5; color: #059669; }
.badge-objecao { background: var(--blue-light); color: var(--blue); }
.badge-fechamento { background: var(--pink-light); color: var(--pink); }
.badge-followup { background: var(--yellow-light); color: var(--yellow); }
.badge-promo { background: var(--purple-light); color: var(--purple); }

.script-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.copy-btn:hover { border-color: var(--purple); color: var(--purple); }
.copy-btn.copied { background: var(--green-light); color: var(--green); border-color: var(--green); }

/* ===== CLIENTES / PEDIDOS TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}
.data-table thead th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tbody tr:hover { background: var(--purple-light); }
[data-theme="dark"] .data-table tbody tr:hover { background: rgba(139,92,246,0.08); }

.status-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-pendente { background: var(--yellow-light); color: var(--yellow); }
.status-preparo { background: var(--blue-light); color: var(--blue); }
.status-pronto { background: var(--green-light); color: var(--green); }
.status-entregue { background: var(--purple-light); color: var(--purple); }

/* ===== STATUS BOARD ===== */
.status-board { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.status-col { min-height: 200px; }
.status-h {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.pending-h { background: var(--yellow-light); color: var(--yellow); }
.preparo-h { background: var(--blue-light); color: var(--blue); }
.pronto-h { background: var(--green-light); color: var(--green); }
.entregue-h { background: var(--purple-light); color: var(--purple); }

.status-list {}
.status-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg-card);
  font-size: 0.82rem;
}
.status-card strong { display: block; margin-bottom: 4px; }
.status-card small { color: var(--text-muted); }

/* ===== TIMELINE ===== */
.timeline {}
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--purple);
  margin-top: 4px;
  flex-shrink: 0;
}
.timeline-info { flex: 1; }
.timeline-info strong { font-size: 0.85rem; display: block; }
.timeline-info small { color: var(--text-muted); font-size: 0.75rem; }

/* ===== NOTAS ===== */
.nota-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg);
  position: relative;
}
.nota-card p { font-size: 0.85rem; color: var(--text); white-space: pre-line; }
.nota-card small { color: var(--text-muted); font-size: 0.72rem; display: block; margin-top: 6px; }
.nota-delete {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 0.8rem;
}
.nota-delete:hover { color: #EF4444; }

/* ===== BONUS CONTENT ===== */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.idea-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
}
.idea-card:hover { border-color: var(--purple-soft); transform: translateY(-1px); }
.idea-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.idea-card p { font-size: 0.78rem; color: var(--text-muted); }
.idea-card .idea-price { font-weight: 700; color: var(--green); margin-top: 6px; font-size: 0.85rem; }

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.price-table th { background: var(--bg); padding: 10px 14px; text-align: left; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.price-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.price-table tr:hover { background: var(--purple-light); }
[data-theme="dark"] .price-table tr:hover { background: rgba(139,92,246,0.08); }

.combo-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 12px;
}
.combo-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 8px; color: var(--purple); }
.combo-card ul { list-style: none; padding: 0; }
.combo-card ul li { font-size: 0.84rem; color: var(--text-secondary); padding: 4px 0; }
.combo-card ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.combo-card .combo-price { margin-top: 10px; font-weight: 800; font-size: 1.1rem; color: var(--green); }
.combo-card .combo-margin { font-size: 0.78rem; color: var(--text-muted); }

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--bg);
}
.tip-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tip-card p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }
.tip-card strong { color: var(--text); }

.guia-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg);
}
.guia-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #7C3AED);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.guia-step h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.guia-step p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== ESTOQUE ===== */
.stock-low { color: #EF4444 !important; font-weight: 700; }
.stock-ok { color: var(--green) !important; font-weight: 700; }

/* ===== PEDIDOS PLAN ===== */
.pedido-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg);
}
.pedido-plan-info { font-size: 0.85rem; }
.pedido-plan-info strong { color: var(--text); }
.pedido-plan-info span { color: var(--text-secondary); }

/* ===== PRODUCTION PLAN ===== */
.prod-plan-row {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

/* ===== UTILITIES ===== */
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 24px; }
.text-center { text-align: center; }

/* ===== PEDIDOS SUMMARY ===== */
.pedidos-summary {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin: 16px 0;
}
.ped-sum-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.ped-sum-card span { font-size: 0.72rem; font-weight: 600; display: block; }
.ped-sum-card strong { font-size: 1.2rem; font-weight: 800; display: block; margin-top: 2px; }

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .status-board { grid-template-columns: repeat(2,1fr); }
  .pedidos-summary { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .content-area { padding: 20px 16px; }
  .top-nav { padding: 12px 16px; }
  .search-box { min-width: 140px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .status-board { grid-template-columns: 1fr; }
  .prod-row, .combo-row { grid-template-columns: 1fr; }
  .crono-grid { grid-template-columns: 1fr; }
  .idea-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.3rem; }
  .section-header { flex-direction: column; gap: 12px; }
  .pedidos-summary { grid-template-columns: 1fr 1fr; }
}

/* ===== SEARCH HIGHLIGHT ===== */
.search-highlight { background: var(--yellow-light); border-color: var(--yellow) !important; }

/* ===== PRINT UTILITY ===== */
@media print {
  .sidebar, .top-nav, .back-btn, .btn { display: none !important; }
  .main-content { margin-left: 0; }
}
