@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   ALLLUZ MEDIA — BRAND DESIGN SYSTEM (DARK LUXURY GLASS)
   Mesmo design system, tokens e diagramação de allluz.web.app
   ============================================================ */

:root {
  --bg-main: #060B16;
  --bg-surface: #0B1222;
  --bg-card: rgba(14, 22, 38, 0.78);
  --bg-card-hover: rgba(20, 32, 56, 0.88);
  --glass-bg: rgba(14, 22, 34, 0.85);

  --electric-blue: #009FFD;
  --blue-allluz: #155BFF;
  --neon-cyan: #38BDF8;
  --emerald-accent: #10B981;
  --purple-intel: #7048E8;
  --orange-action: #FF6B35;
  --amber-gold: #F59E0B;

  --text-main: #FFFFFF;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --border-neon: rgba(0, 159, 253, 0.28);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 159, 253, 0.45);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Outfit', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 25px rgba(0, 159, 253, 0.18);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.55);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 159, 253, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(21, 91, 255, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── HEADER DA SUÍTE DE DOCUMENTOS (MESMO ESTILO TOP-HEADER ALLLUZ) ── */
.allluz-doc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 11, 22, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.allluz-doc-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.allluz-doc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}

.allluz-doc-brand:hover {
  opacity: 0.9;
}

.allluz-doc-brand__logo {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 159, 253, 0.3));
}

.allluz-doc-brand__pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 159, 253, 0.14);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 159, 253, 0.4);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 159, 253, 0.2);
}

.allluz-doc-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  max-width: 100%;
}

.allluz-doc-nav__item {
  color: #94A3B8;
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.allluz-doc-nav__item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.allluz-doc-nav__item.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(0, 159, 253, 0.24), rgba(21, 91, 255, 0.35));
  border-color: rgba(0, 159, 253, 0.55);
  box-shadow: 0 2px 14px rgba(0, 159, 253, 0.35);
}

.allluz-doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-action-primary {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--blue-allluz) 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 159, 253, 0.4);
}

.btn-action-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 159, 253, 0.6);
}

.btn-action-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(0, 159, 253, 0.4);
}

/* ── CONTAINERS & SHEETS (ESTILO BENTO / GLASS PANEL) ── */
.doc-container {
  max-width: 1200px;
  margin: 36px auto 100px;
  padding: 0 20px;
}

.doc-sheet {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-neon);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 159, 253, 0.06);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

/* Feixe laser luminoso holográfico no topo */
.doc-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #009FFD, #38BDF8, #10B981, #009FFD, transparent);
  box-shadow: 0 0 16px rgba(0, 159, 253, 0.85);
}

.doc-hero {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 24px;
}

.doc-hero__badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  background: rgba(0, 159, 253, 0.12);
  border: 1px solid rgba(0, 159, 253, 0.35);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(0, 159, 253, 0.15);
}

.doc-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.doc-hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.65;
}

/* ── BLOCOS E SEÇÕES (ESTILO BENTO ALLLUZ) ── */
.form-section,
.brand-section,
.kpi-card,
.proposta-section {
  background: rgba(10, 16, 30, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.25s ease;
  margin-bottom: 24px;
}

.form-section:hover,
.brand-section:hover,
.form-section:focus-within {
  border-color: rgba(0, 159, 253, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 159, 253, 0.08);
  background: rgba(14, 22, 40, 0.85);
}

.form-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.form-section__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--neon-cyan);
  background: linear-gradient(135deg, rgba(0, 159, 253, 0.2), rgba(21, 91, 255, 0.3));
  border: 1px solid rgba(0, 159, 253, 0.4);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 159, 253, 0.2);
}

.form-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.form-section__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ── INPUTS E CAMPOS DE FORMULÁRIO ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #F8FAFC;
  background: rgba(6, 11, 22, 0.65);
  transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #64748B;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  background: rgba(8, 16, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 159, 253, 0.25), 0 0 16px rgba(0, 159, 253, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

/* ── CHECKBOXES & TAGS ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.2s ease;
}

.checkbox-item:hover {
  background: rgba(0, 159, 253, 0.08);
  border-color: rgba(0, 159, 253, 0.35);
  color: #FFFFFF;
}

.checkbox-item input {
  accent-color: var(--electric-blue);
  width: 16px;
  height: 16px;
}

/* ── STICKY TOOLBAR INFERIOR ── */
.sticky-toolbar {
  position: sticky;
  bottom: 20px;
  z-index: 90;
  background: rgba(6, 11, 22, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-neon);
  padding: 14px 26px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 159, 253, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  color: #fff;
}

.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 22, 38, 0.95);
  backdrop-filter: blur(14px);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 159, 253, 0.3);
  z-index: 99999;
  display: none;
  border: 1px solid var(--border-neon);
}

/* ── BADGES & TAGS ── */
.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-tag--blue { 
  background: rgba(0, 159, 253, 0.15); 
  color: #60A5FA; 
  border: 1px solid rgba(0, 159, 253, 0.35); 
}
.badge-tag--purple { 
  background: rgba(112, 72, 232, 0.18); 
  color: #D9CFF0; 
  border: 1px solid rgba(112, 72, 232, 0.35); 
}
.badge-tag--orange { 
  background: rgba(255, 107, 53, 0.18); 
  color: #FDBA74; 
  border: 1px solid rgba(255, 107, 53, 0.35); 
}
.badge-tag--green { 
  background: rgba(16, 185, 129, 0.18); 
  color: #6EE7B7; 
  border: 1px solid rgba(16, 185, 129, 0.35); 
}
.badge-tag--gray { 
  background: rgba(255, 255, 255, 0.06); 
  color: #CBD5E1; 
  border: 1px solid rgba(255, 255, 255, 0.12); 
}

/* ── KANBAN & CENTRAL PIPELINE (ESTILO ALLLUZ STUDIO) ── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 24px;
  min-height: 540px;
}

@media (max-width: 1200px) {
  .kanban-board { grid-template-columns: repeat(3, 300px); }
}
@media (max-width: 640px) {
  .kanban-board { grid-template-columns: repeat(2, 280px); }
}

.kanban-col {
  background: rgba(10, 16, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}

.kanban-col-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 22, 38, 0.9);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.kanban-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kanban-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 159, 253, 0.18);
  color: #60A5FA;
  border: 1px solid rgba(0, 159, 253, 0.3);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

.kanban-cards-area {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}

.client-card {
  background: rgba(18, 28, 48, 0.85);
  border: 1px solid rgba(0, 159, 253, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 159, 253, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 159, 253, 0.12);
}

.client-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.client-card__plan {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon-cyan);
  background: rgba(0, 159, 253, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.client-card__info {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.client-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.action-icon-link {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.15s;
}

.action-icon-link:hover {
  background: var(--electric-blue);
  color: #060B16;
  border-color: var(--electric-blue);
  box-shadow: 0 0 10px rgba(0, 159, 253, 0.5);
}

/* ── ESTILOS DE IMPRESSÃO (PDF EXECUTIVO LIMPO) ── */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm;
  }
  body {
    background: #FFFFFF !important;
    background-image: none !important;
    color: #070B1F !important;
    font-size: 10pt;
  }
  .allluz-doc-header,
  .no-print,
  .sticky-toolbar,
  .btn-action-primary,
  .btn-action-ghost {
    display: none !important;
  }
  .doc-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .doc-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: #FFFFFF !important;
  }
  .doc-sheet::before {
    display: none !important;
  }
  .form-section,
  .brand-section {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #070B1F !important;
  }
  .form-section__title {
    color: #070B1F !important;
  }
  .doc-hero__title {
    color: #070B1F !important;
  }
  input, select, textarea {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #070B1F !important;
  }
  .page-break {
    page-break-after: always;
  }
}
