﻿/* ============================================================
   PedeFi Rebrand — tokens e primitivos globais (Fase 6.3)
   :root, tipografia, botões/inputs compartilhados, login público.
   Painel admin: assets/css/admin-rebrand.css
   ============================================================ */

:root {
  --pedefi-orange: #ff6a00;
  --pedefi-red: #ff3434;
  --pedefi-gradient: linear-gradient(135deg, #ff6a00 0%, #ff3434 48%, #ff3434 100%);
  --pedefi-gradient-soft: linear-gradient(135deg, rgba(255,106,0,0.12), rgba(255,52,52,0.12));
  --pedefi-charcoal: #0d1117;
  --pedefi-gray-900: #1a1f26;
  --pedefi-gray-600: #6b7280;
  --pedefi-gray-200: #e5e7eb;
  --pedefi-gray-100: #f3f4f6;
  --pedefi-white: #ffffff;
  --pedefi-success: #22c55e;
  --pedefi-info: #3b82f6;
  --pedefi-warning: #facc15;
  --pedefi-danger: #ef4444;
  --pedefi-purple: #8b5cf6;

  --pedefi-ds-color-primary: var(--pedefi-red);
  --pedefi-ds-color-primary-hover: #e62f2f;
  --pedefi-ds-color-primary-soft: #fff1f4;
  --pedefi-ds-color-primary-strong: var(--pedefi-orange);
  --pedefi-ds-color-dark: var(--pedefi-charcoal);
  --pedefi-ds-color-dark-2: var(--pedefi-gray-900);
  --pedefi-ds-color-bg: #f6f7f9;
  --pedefi-ds-color-bg-soft: #fbfbfc;
  --pedefi-ds-color-surface: #ffffff;
  --pedefi-ds-color-surface-soft: #f8fafc;
  --pedefi-ds-color-text: var(--pedefi-charcoal);
  --pedefi-ds-color-text-soft: #28313d;
  --pedefi-ds-color-muted: var(--pedefi-gray-600);
  --pedefi-ds-color-border: var(--pedefi-gray-200);
  --pedefi-ds-color-success: #15803d;
  --pedefi-ds-color-success-action: var(--pedefi-success);
  --pedefi-ds-color-danger: #b91c1c;
  --pedefi-ds-color-danger-action: var(--pedefi-danger);
  --pedefi-ds-color-warning: #92400e;
  --pedefi-ds-color-info: #1d4ed8;
  --pedefi-ds-radius-xs: 7px;
  --pedefi-ds-radius-sm: 8px;
  --pedefi-ds-radius-md: 10px;
  --pedefi-ds-radius-lg: 12px;
  --pedefi-ds-radius-xl: 14px;
  --pedefi-ds-radius-2xl: 16px;
  --pedefi-ds-radius-3xl: 18px;
  --pedefi-ds-radius-4xl: 20px;
  --pedefi-ds-shadow-xs: 0 1px 2px rgba(13, 17, 23, 0.04);
  --pedefi-ds-shadow-sm: 0 8px 20px rgba(13, 17, 23, 0.06);
  --pedefi-ds-shadow-md: 0 16px 34px rgba(13, 17, 23, 0.08);
  --pedefi-ds-shadow-lg: 0 22px 54px rgba(13, 17, 23, 0.14);
  --pedefi-ds-shadow-primary: 0 12px 26px rgba(255, 52, 52, 0.18);
  --pedefi-ds-shadow-primary-strong: 0 16px 34px rgba(255, 52, 52, 0.24);

  --primary: var(--pedefi-red);
  --primary-dark: #e62f2f;
  --primary-soft: #fff1f4;
  --dark: var(--pedefi-charcoal);
  --dark-2: var(--pedefi-gray-900);
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: var(--pedefi-charcoal);
  --muted: var(--pedefi-gray-600);
  --border: var(--pedefi-gray-200);
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: var(--pedefi-ds-shadow-md);
  --shadow-soft: var(--pedefi-ds-shadow-sm);
}

* {
  letter-spacing: 0 !important;
}

body {
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 106, 0, 0.08), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(255, 52, 52, 0.07), transparent 30%),
    linear-gradient(180deg, #fbfbfc 0%, #f6f7f9 100%) !important;
  color: var(--pedefi-charcoal);
}

.pedefi-icon,
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button [data-lucide],
a [data-lucide] {
  width: 17px;
  height: 17px;
}

h1:has([data-lucide]),
h2:has([data-lucide]),
h3:has([data-lucide]),
.page-hero-title-row h2,
.produtos-shortcuts a,
.link-publico-selo,
.link-publico-icone,
.dashboard-metric-icon,
.dashboard-empty-icon,
.produtos-confirm-icon,
.admin-confirm-icon,
.notification,
.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-metric-icon,
.dashboard-empty-icon,
.produtos-confirm-icon,
.admin-confirm-icon,
.link-publico-icone {
  justify-content: center;
}

.dashboard-metric-icon svg,
.dashboard-empty-icon svg,
.produtos-confirm-icon svg,
.admin-confirm-icon svg {
  width: 22px;
  height: 22px;
}

.topbar,
.page-hero,
.panel,
.dashboard-panel,
.dashboard-metric-card,
.produtos-main-panel,
.produtos-side-card,
.checkout-card,
.modal-content,
.pedido-card {
  border-color: rgba(229, 231, 235, 0.92) !important;
  box-shadow: var(--pedefi-ds-shadow-sm) !important;
}

.dashboard-hero-premium,
.page-hero-standard {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #0d1117 0%, #1a1f26 48%, #ff3434 150%) !important;
}

.dashboard-hero-premium::after {
  background: rgba(255, 52, 52, 0.22) !important;
}

.dashboard-metric-icon,
.dashboard-store-icon,
.card-icon,
.pedido-bloco h4 [data-lucide] {
  background: var(--pedefi-gradient-soft) !important;
  color: var(--pedefi-red) !important;
}

#sair,
#btnNovoProduto,
.checkout-btn-primary,
.btn-status-pedido,
.pedefi-ds-btn-primary {
  background: var(--pedefi-gradient) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: var(--pedefi-ds-shadow-primary) !important;
}

#sair:hover,
#btnNovoProduto:hover,
.checkout-btn-primary:hover,
.btn-status-pedido:hover,
.pedefi-ds-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--pedefi-ds-shadow-primary-strong) !important;
}

.checkout-btn-secondary,
.pedefi-ds-btn-secondary,
.notification,
.mobile-menu-button {
  background: #ffffff !important;
  color: var(--pedefi-charcoal) !important;
  border: 1px solid var(--pedefi-gray-200) !important;
  box-shadow: var(--pedefi-ds-shadow-xs) !important;
}

input,
textarea,
select,
.pedefi-ds-input,
.pedefi-ds-select,
.pedefi-ds-textarea {
  border-color: #dfe3ea !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

input:focus,
textarea:focus,
select:focus,
.pedefi-ds-input:focus,
.pedefi-ds-select:focus,
.pedefi-ds-textarea:focus {
  border-color: rgba(255, 52, 52, 0.58) !important;
  box-shadow: 0 0 0 4px rgba(255, 52, 52, 0.10) !important;
}

.badge-obrigatorio,
.pedido-status.novo,
.pedido-status.preparo,
.pedido-status.saiu_entrega,
.checkout-step.ativo span,
.checkout-etapa.ativa {
  background: var(--pedefi-gradient) !important;
  color: #ffffff !important;
}

.login-page {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 106, 0, 0.17), transparent 26%),
    radial-gradient(circle at 76% 12%, rgba(255, 52, 52, 0.16), transparent 24%),
    linear-gradient(135deg, #0d1117 0%, #151b23 44%, #f6f7f9 44.1%, #ffffff 100%) !important;
}

.login-card {
  max-width: 430px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 18px !important;
  box-shadow: 0 26px 70px rgba(13, 17, 23, 0.18) !important;
}

.login-logo {
  display: block;
  width: auto;
  max-width: min(340px, 94%);
  height: clamp(112px, 22vw, 132px);
  object-fit: contain;
  object-position: center;
  margin: 0 auto 12px;
}

.login-card h1 {
  color: var(--pedefi-charcoal) !important;
}

.login-card button {
  background: var(--pedefi-gradient) !important;
  box-shadow: var(--pedefi-ds-shadow-primary);
}

.login-links a {
  color: var(--pedefi-red) !important;
}

/* Componentes do painel: assets/css/admin-rebrand.css */
