/* ==========================================================================
   NATUZZI ITALIA - BRAND DESIGN SYSTEM & DASHBOARD STYLESHEET
   Authentic Design Language: Söhne typography, monochrome contrast,
   warm Apulian limestone (#FAF4E4 / #FAF9F5), pill CTAs and architectural minimalism.
   ========================================================================== */

/* 1. Official Söhne Web Fonts (Extracted directly from natuzzi.com) */
@font-face {
  font-family: 'Sohne';
  src: url('fonts/soehne-web-leicht.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne';
  src: url('fonts/soehne-web-buch.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne';
  src: url('fonts/soehne-web-kraftig.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Design Tokens */
:root {
  --natuzzi-black: #141414;
  --natuzzi-black-deep: #0a0a0a;
  --natuzzi-white: #ffffff;
  
  /* Signature Natuzzi Mediterranean Linens & Limestones */
  --natuzzi-linen: #faf9f5;
  --natuzzi-cream: #faf4e4;
  --natuzzi-sand: #f5f0e6;
  --natuzzi-stone: #ece7de;
  --natuzzi-border: #eae6df;
  --natuzzi-border-dark: #333333;
  
  /* Typography Greys */
  --natuzzi-muted: #767670;
  --natuzzi-subtle: #9c9c94;
  --natuzzi-border-light: #f0ede6;
  
  /* Accent Warm Sand / Gold (Subtle, never garish) */
  --natuzzi-accent: #c4a482;
  --natuzzi-accent-dark: #8e6c46;
}

/* 3. Global Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sohne', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--natuzzi-linen);
  color: var(--natuzzi-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Headings with Natuzzi's signature tight tracking and clean weight */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sohne', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
  color: var(--natuzzi-black);
  font-weight: 500;
}

.tracking-natuzzi {
  letter-spacing: -0.03em;
}

.tracking-natuzzi-wide {
  letter-spacing: 0.08em;
}

/* 4. Signature Natuzzi Buttons (Pill shape, smooth hover) */
.btn-natuzzi-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--natuzzi-black);
  color: var(--natuzzi-white);
  border: 1px solid var(--natuzzi-black);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-natuzzi-primary:hover {
  background-color: #2b2b2b;
  border-color: #2b2b2b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  color: var(--natuzzi-white);
}

.btn-natuzzi-primary:active {
  transform: scale(0.98);
}

.btn-natuzzi-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--natuzzi-black);
  border: 1px solid var(--natuzzi-black);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-natuzzi-outline:hover {
  background-color: var(--natuzzi-black);
  color: var(--natuzzi-white);
  transform: translateY(-1px);
}


/* Variante do botão contornado sobre fundo escuro (banners do Lojista e do Marketing).
   Regras mais específicas que as utilitárias, para valer independentemente da ordem
   em que o Tailwind CDN e esta folha são carregados. */
.btn-natuzzi-outline.text-white {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-natuzzi-outline.text-white:hover {
  background-color: #ffffff;
  color: var(--natuzzi-black);
  border-color: #ffffff;
}
.btn-natuzzi-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--natuzzi-white);
  color: var(--natuzzi-black);
  border: 1px solid var(--natuzzi-white);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-natuzzi-white:hover {
  background-color: var(--natuzzi-cream);
  border-color: var(--natuzzi-cream);
  color: var(--natuzzi-black);
  transform: translateY(-1px);
}

.btn-natuzzi-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.8125rem;
}

.btn-natuzzi-link {
  color: var(--natuzzi-black);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-natuzzi-link:hover {
  opacity: 0.65;
}

/* 5. Architectural Cards & Surfaces (High-Contrast Natuzzi Italia) */
.natuzzi-card {
  background-color: #ffffff !important;
  border: 1px solid #d4cebf !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(20, 20, 20, 0.06), 0 2px 6px -1px rgba(20, 20, 20, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.natuzzi-card:hover {
  border-color: #b8b1a2 !important;
  box-shadow: 0 12px 32px -4px rgba(20, 20, 20, 0.1), 0 4px 12px -2px rgba(20, 20, 20, 0.05) !important;
  transform: translateY(-1px);
}

.natuzzi-card-cream {
  background-color: #faf4e4 !important;
  border: 1px solid #ddd7ce !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(20, 20, 20, 0.04) !important;
}

.natuzzi-card-dark {
  background-color: #141414 !important;
  color: #ffffff !important;
  border: 1px solid #282828 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.25) !important;
}

/* 6. Form Inputs & Selects */
.form-input-natuzzi {
  width: 100%;
  background-color: var(--natuzzi-white);
  border: 1px solid var(--natuzzi-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--natuzzi-black);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-natuzzi:focus {
  border-color: var(--natuzzi-black);
  box-shadow: 0 0 0 1px var(--natuzzi-black);
}

.form-input-natuzzi::placeholder {
  color: #a8a89e;
}

/* 7. Status Badges (Strictly single-line, never wrap) */
.badge-aprovada {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem;
  background-color: #141414;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.badge-em_analise {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem;
  background-color: #f7ede0;
  color: #8c5722;
  border: 1px solid #ebd3ba;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.badge-rejeitada {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem;
  background-color: #fce8e6;
  color: #9c271d;
  border: 1px solid #f5c4bf;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* Radio & Checkbox Selectors (Natuzzi Black) */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #141414 !important;
  cursor: pointer;
}

/* 8. Table Styling */
.natuzzi-table-header {
  background-color: #f5f3ec;
  color: #767670;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--natuzzi-border);
}

.natuzzi-table-row {
  border-bottom: 1px solid var(--natuzzi-border-light);
  transition: background-color 0.2s ease;
}

.natuzzi-table-row:hover {
  background-color: rgba(250, 244, 228, 0.4);
}

/* 9. Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--natuzzi-linen);
}

::-webkit-scrollbar-thumb {
  background: #d4cfc5;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a49a;
}


/* 10. Floating Toast Notifications (Natuzzi Luxury Pill) */
#toast-container {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.625rem !important;
  pointer-events: none !important;
  max-width: 400px !important;
  width: calc(100vw - 3rem) !important;
}

.toast {
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  background-color: #141414 !important;
  color: #ffffff !important;
  padding: 0.875rem 1.25rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  font-family: 'Sohne', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-exit {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.96) !important;
}

.toast-success i.fa-circle-check,
.toast-success i.fa-check-circle {
  color: #ffffff !important;
}

.toast-error {
  background-color: #2a1111 !important;
  border-color: #6b2121 !important;
  color: #ffffff !important;
}

.toast-info {
  background-color: #141414 !important;
  border-color: #333333 !important;
  color: #ffffff !important;
}

.toast button {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: pointer !important;
  padding: 0.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s !important;
}

.toast button:hover {
  color: #ffffff !important;
}

/* Telas baixas (celular na horizontal, notebooks pequenos): o modal alinha ao topo e a sobreposição rola,
   para o título e o botão de fechar nunca ficarem fora da tela. */
@media (max-height: 760px) {
  .modal-overlay {
    align-items: flex-start !important;
  }
}

/* --- Upgrade 04/11/2026: marcas, barra de progresso e relatórios --- */
.brand-dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; margin-right: 6px; vertical-align: middle; }
.progress-track { position: relative; height: 18px; border-radius: 9999px; background: #F1EEE7; border: 1px solid #EAE6DF; overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: 9999px; background: var(--brand, #141414); transition: width .8s ease; min-width: 0; }
.progress-fill.is-over { background: linear-gradient(90deg, var(--brand, #141414) 0%, var(--brand, #141414) 75%, #c4a482 100%); }
.progress-goal { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; background: #c4a482; box-shadow: 0 0 0 2px #fff; }
.brand-progress + .brand-progress { padding-top: 1.5rem; border-top: 1px dashed #EAE6DF; }
.report-card { background: #fff; border: 1px solid #eae6df; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 4px 16px -2px rgba(20,20,20,.05); }
.report-title { font-size: .875rem; font-weight: 600; color: #141414; margin-bottom: .75rem; }
.report-sub { font-weight: 400; color: #767670; font-size: .75rem; }
.report-chart { position: relative; height: 260px; }
.report-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .75rem; color: #9a968c; }

/* Regulamento oficial (texto longo do modal) */
.reg-text p { margin: 0 0 .65rem; }
.reg-text .reg-h { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #141414; margin: 1.5rem 0 .6rem; padding-top: 1rem; border-top: 1px solid #EAE6DF; }
.reg-text .reg-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.reg-text strong { color: #141414; font-weight: 600; }
.reg-text .reg-list { list-style: disc; padding-left: 1.25rem; margin: 0 0 .75rem; }
.reg-text .reg-list li { margin: .25rem 0; }
.reg-text .reg-example { background: #FAF4E4; border: 1px solid #EAE6DF; border-radius: .75rem; padding: .75rem 1rem; }

/* Relatórios: tabela de números abaixo de cada gráfico (sempre visível; também vai para o PDF) */
.report-table { margin-top: .75rem; overflow-x: auto; }
.report-table table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.report-table th { text-align: left; font-weight: 600; color: #555550; background: #F6F3EC; padding: .35rem .5rem; border-bottom: 1px solid #EAE6DF; }
.report-table td { padding: .3rem .5rem; border-bottom: 1px solid #F1EEE7; color: #141414; }
.report-table tfoot td { font-weight: 600; background: #FAF4E4; }
.report-table .num { text-align: right; white-space: nowrap; }
