/* =============================================================================
   ondevou-doc.css - Estilos Padrão para Documentação Técnica ONDEVOU
   Versão: 3.0.0 (COMPLETA - Unificada)
   Prefixo: doc- (para evitar conflitos com a plataforma)
   
   CHANGELOG v3.0.0:
   - Adicionadas classes faltantes dos arquivos HTML
   - Unificados estilos inline do arquivo 2 (ajuda-romaneios)
   - Adicionadas classes para tabelas de operações
   - Adicionados estilos de status OK/NO
   - Adicionados estilos para taskbar e ações
   - Adicionados estilos para indicadores
   ============================================================================= */

/* =============================================================================
   VARIÁVEIS GLOBAIS (com prefixo doc-)
   ============================================================================= */

:root {
  /* Cores principais */
  --doc-bg: #0b0f14;
  --doc-panel: #111827;
  --doc-panel-2: #0f172a;
  --doc-text: #e5e7eb;
  --doc-muted: #9ca3af;
  --doc-accent: #22d3ee;
  --doc-accent-2: #60a5fa;
  --doc-ok: #34d399;
  --doc-warn: #fbbf24;
  --doc-bad: #fb7185;
  --doc-code: #020617;
  --doc-border: #1f2937;
  
  /* Cores específicas */
  --doc-blue: #3b82f6;
  --doc-green: #22c55e;
  --doc-red: #ef4444;
  --doc-purple: #a855f7;
  --doc-orange: #f97316;
  --doc-yellow: #eab308;
  --doc-brown: #964B00;
  --doc-pink: #ec4899;
  --doc-teal: #14b8a6;
  --doc-indigo: #6366f1;
  
  /* Glows */
  --doc-glow: rgba(34, 211, 238, 0.4);
  --doc-glow-blue: rgba(59, 130, 246, 0.4);
  --doc-glow-green: rgba(34, 197, 94, 0.4);
  --doc-glow-purple: rgba(168, 85, 247, 0.4);
  --doc-glow-pink: rgba(236, 72, 153, 0.4);
}

/* =============================================================================
   RESET E BASE (com prefixo doc-)
   ============================================================================= */

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

html.doc-page,
body.doc-page {
  background: var(--doc-bg);
  color: var(--doc-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* =============================================================================
   QUEBRA DE PALAVRAS LONGAS (CORREÇÃO PARA QR CODE E CÓDIGOS)
   ============================================================================= */

/* Força quebra de palavras longas em todos os elementos que podem conter códigos */
.doc-code-block,
.doc-qrcode-example,
.doc-example-config pre,
.doc-card code,
pre,
code,
.doc-operations-table td,
.doc-operations-table code {
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Estilo específico para exemplos de QR Code */
.doc-qrcode-example {
  word-break: break-all;
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Para células de tabela com códigos longos */
.doc-operations-table td code {
  word-break: break-all;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

/* Para qualquer elemento com monospace que possa conter texto longo */
code, pre, .doc-code-block {
  word-break: break-all;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* =============================================================================
   ANIMAÇÕES (com prefixo doc-)
   ============================================================================= */

@keyframes doc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes doc-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes doc-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--doc-glow);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
  }
}

@keyframes doc-slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes doc-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes doc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =============================================================================
   HEADER CORRIGIDO - LOGO ESQUERDA, TÍTULO E VERSÃO, MENU DIREITA
   ============================================================================= */

.doc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.98), rgba(11, 15, 20, 0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--doc-border);
  padding: 0.5rem 0;
  animation: doc-fadeIn 0.5s ease-out;
}

.doc-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Logo + Texto - LADO ESQUERDO */
.doc-header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.doc-header-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
  transition: left 0.6s ease;
}

.doc-header-logo:hover::before {
  left: 100%;
}

.doc-header-logo:hover {
  transform: translateY(-2px);
}

/* Logo (esquerda) */
.doc-logo-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 2px;
  background: rgba(34, 211, 238, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.doc-header-logo:hover .doc-logo-image {
  border-color: var(--doc-accent);
  box-shadow: 0 0 15px var(--doc-glow);
  transform: scale(1.05) rotate(5deg);
}

.doc-logo-fallback {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--doc-accent), var(--doc-accent-2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--doc-bg);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.doc-header-logo:hover .doc-logo-fallback {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 15px var(--doc-glow);
}

/* Container do texto (direita da logo) */
.doc-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Título do app (em cima) */
.doc-logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--doc-accent), var(--doc-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.doc-header-logo:hover .doc-logo-title {
  background: linear-gradient(135deg, var(--doc-accent-2), var(--doc-accent));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Versão do app (embaixo) */
.doc-logo-subtitle {
  font-size: 0.8rem;
  color: var(--doc-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.doc-header-logo:hover .doc-logo-subtitle {
  color: var(--doc-accent);
}

/* Desktop Navigation - DIREITA */
.doc-desktop-nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  flex: 1;
}

@media (min-width: 1024px) {
  .doc-desktop-nav {
    display: flex;
  }

  .doc-desktop-nav a {
    padding: 0.4rem 0.6rem;
    background: var(--doc-panel);
    border: 1px solid var(--doc-border);
    border-radius: 6px;
    color: var(--doc-text);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }

  .doc-desktop-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
    transition: left 0.6s ease;
  }

  .doc-desktop-nav a:hover::before {
    left: 100%;
  }

  .doc-desktop-nav a:hover {
    border-color: var(--doc-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(34, 211, 238, 0.05);
  }
}

/* Hamburger Menu - DIREITA */
.doc-menu-toggle {
  background: none;
  border: 1px solid var(--doc-border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .doc-menu-toggle {
    display: none;
  }
}

.doc-menu-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
  transition: left 0.6s ease;
}

.doc-menu-toggle:hover::before {
  left: 100%;
}

.doc-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--doc-text);
  border-radius: 1px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.doc-menu-toggle:hover {
  border-color: var(--doc-accent);
  box-shadow: 0 0 10px var(--doc-glow);
}

.doc-menu-toggle.active {
  border-color: var(--doc-accent);
  background: rgba(34, 211, 238, 0.1);
}

.doc-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
  background: var(--doc-accent);
}

.doc-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.doc-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  background: var(--doc-accent);
}

/* =============================================================================
   MOBILE MENU
   ============================================================================= */

.doc-mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid var(--doc-border);
}

.doc-mobile-menu.active {
  transform: translateX(0);
}

.doc-mobile-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.doc-mobile-menu-section {
  margin-bottom: 2rem;
  width: 100%;
}

.doc-mobile-menu-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--doc-accent-2);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: doc-slideIn 0.3s ease-out;
}

.doc-mobile-nav-link {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--doc-panel);
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  color: var(--doc-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.doc-mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
  transition: left 0.6s ease;
}

.doc-mobile-nav-link:hover::before {
  left: 100%;
}

.doc-mobile-nav-link:hover {
  border-color: var(--doc-accent);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(34, 211, 238, 0.05);
}

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */

.doc-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.doc-hero-section {
  margin: 2rem 0 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(96, 165, 250, 0.05));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  animation: doc-fadeIn 0.6s ease-out;
}

.doc-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--doc-accent), transparent);
}

.doc-hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  animation: doc-float 20s infinite ease-in-out;
}

.doc-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--doc-accent), var(--doc-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.doc-hero-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--doc-accent), var(--doc-accent-2));
  transition: width 0.3s ease;
}

.doc-hero-section:hover .doc-hero-title::after {
  width: 100%;
}

.doc-hero-subtitle {
  font-size: 1.125rem;
  color: var(--doc-muted);
  margin-bottom: 1.5rem;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.doc-hero-subtitle strong {
  color: var(--doc-text);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.doc-hero-subtitle strong::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--doc-ok), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.doc-hero-subtitle:hover strong::after {
  transform: scaleX(1);
}

.doc-hero-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* =============================================================================
   BADGES / PILLS
   ============================================================================= */

.doc-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--doc-panel);
  border: 1px solid var(--doc-border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--doc-muted);
  margin: 0.125rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.doc-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.doc-badge:hover::before {
  left: 100%;
}

.doc-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.doc-badge.doc-ok {
  background: rgba(52, 211, 153, 0.1);
  color: var(--doc-ok);
  border-color: rgba(52, 211, 153, 0.3);
}

.doc-badge.doc-ok:hover {
  background: rgba(52, 211, 153, 0.2);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2);
}

.doc-badge.doc-warn {
  background: rgba(251, 191, 36, 0.1);
  color: var(--doc-warn);
  border-color: rgba(251, 191, 36, 0.3);
}

.doc-badge.doc-warn:hover {
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.doc-badge.doc-bad {
  background: rgba(251, 113, 133, 0.1);
  color: var(--doc-bad);
  border-color: rgba(251, 113, 133, 0.3);
}

.doc-badge.doc-bad:hover {
  background: rgba(251, 113, 133, 0.2);
  box-shadow: 0 4px 12px rgba(251, 113, 133, 0.2);
}

.doc-badge.doc-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--doc-blue);
  border-color: rgba(59, 130, 246, 0.3);
}

.doc-badge.doc-blue:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.doc-badge.doc-green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--doc-green);
  border-color: rgba(34, 197, 94, 0.3);
}

.doc-badge.doc-green:hover {
  background: rgba(34, 197, 94, 0.2);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.doc-badge.doc-purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--doc-purple);
  border-color: rgba(168, 85, 247, 0.3);
}

.doc-badge.doc-purple:hover {
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.doc-badge.doc-brown {
  background: rgba(150, 75, 0, 0.1);
  color: var(--doc-brown);
  border-color: rgba(150, 75, 0, 0.3);
}

.doc-badge.doc-brown:hover {
  background: rgba(150, 75, 0, 0.2);
  box-shadow: 0 4px 12px rgba(150, 75, 0, 0.2);
}

.doc-badge.doc-pink {
  background: rgba(236, 72, 153, 0.1);
  color: var(--doc-pink);
  border-color: rgba(236, 72, 153, 0.3);
}

.doc-badge.doc-pink:hover {
  background: rgba(236, 72, 153, 0.2);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.doc-badge.doc-teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--doc-teal);
  border-color: rgba(20, 184, 166, 0.3);
}

.doc-badge.doc-teal:hover {
  background: rgba(20, 184, 166, 0.2);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.doc-badge.doc-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: var(--doc-indigo);
  border-color: rgba(99, 102, 241, 0.3);
}

.doc-badge.doc-indigo:hover {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* =============================================================================
   QUICK STATS
   ============================================================================= */

.doc-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.doc-stat-card {
  background: var(--doc-panel-2);
  border: 1px solid var(--doc-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: doc-fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.doc-stat-card:nth-child(1) { animation-delay: 0.1s; }
.doc-stat-card:nth-child(2) { animation-delay: 0.2s; }
.doc-stat-card:nth-child(3) { animation-delay: 0.3s; }
.doc-stat-card:nth-child(4) { animation-delay: 0.4s; }
.doc-stat-card:nth-child(5) { animation-delay: 0.5s; }
.doc-stat-card:nth-child(6) { animation-delay: 0.6s; }

.doc-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
  transition: left 0.6s ease;
}

.doc-stat-card:hover::before {
  left: 100%;
}

.doc-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--doc-accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--doc-glow);
}

.doc-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--doc-accent);
  margin-bottom: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.doc-stat-card:hover .doc-stat-number {
  color: var(--doc-accent-2);
  transform: scale(1.1);
}

.doc-stat-label {
  font-size: 0.875rem;
  color: var(--doc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.doc-stat-card:hover .doc-stat-label {
  color: var(--doc-text);
  letter-spacing: 0.1em;
}

/* =============================================================================
   SECTIONS
   ============================================================================= */

.doc-section {
  margin-top: 2.5rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--doc-border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  animation: doc-fadeIn 0.6s ease-out;
}

.doc-section:hover {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.doc-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.doc-section:hover .doc-section-title {
  transform: translateX(5px);
}

.doc-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.5rem;
  background: var(--doc-accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.doc-section:hover .doc-section-title::before {
  height: 2rem;
  background: linear-gradient(to bottom, var(--doc-accent), var(--doc-accent-2));
}

.doc-section-description {
  font-size: 1rem;
  color: var(--doc-muted);
  margin-bottom: 1.5rem;
  max-width: 800px;
  line-height: 1.6;
}

/* =============================================================================
   GRID SYSTEMS
   ============================================================================= */

.doc-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.doc-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.doc-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

/* =============================================================================
   CARDS
   ============================================================================= */

.doc-card {
  background: var(--doc-panel-2);
  border: 1px solid var(--doc-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: doc-fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
  transition: left 0.7s ease;
  z-index: 0;
}

.doc-card:hover::before {
  left: 100%;
}

.doc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 2px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(96, 165, 250, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.doc-card:hover::after {
  opacity: 1;
}

.doc-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--doc-accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px var(--doc-glow);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.95));
}

.doc-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--doc-accent-2);
  position: relative;
  display: inline-block;
  z-index: 1;
  transition: all 0.3s ease;
}

.doc-card .centralizado {
  text-align: center;
  width: 100%;
}

.doc-card-title.centralizado {
  text-align: center;
  display: block;
  width: 100%;
}

.doc-card:hover .doc-card-title {
  color: var(--doc-accent);
  transform: translateX(5px);
}

.doc-card-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--doc-accent), transparent);
  transition: width 0.3s ease;
}

.doc-card:hover .doc-card-title::after {
  width: 100%;
}

/* =============================================================================
   PHASE SYSTEM (para documentação de fases)
   ============================================================================= */

.doc-phase-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.doc-phase {
  background: var(--doc-panel-2);
  border: 1px solid var(--doc-border);
  border-radius: 0.875rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.doc-phase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--doc-accent), var(--doc-accent-2));
  transition: height 0.3s ease;
  z-index: 1;
}

.doc-phase:hover::before {
  height: 6px;
}

.doc-phase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.doc-phase:hover::after {
  opacity: 1;
}

.doc-phase:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(34, 211, 238, 0.3);
}

.doc-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.doc-phase-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--doc-accent);
  color: var(--doc-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.doc-phase:hover .doc-phase-number {
  transform: scale(1.1) rotate(360deg);
  background: linear-gradient(135deg, var(--doc-accent), var(--doc-accent-2));
  box-shadow: 0 0 15px var(--doc-glow);
}

.doc-phase-name {
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.doc-phase:hover .doc-phase-name {
  color: var(--doc-accent);
  transform: translateX(5px);
}

.doc-phase-files {
  color: var(--doc-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.doc-phase:hover .doc-phase-files {
  color: var(--doc-text);
}

/* =============================================================================
   FLUXOS INTERATIVOS (NOVO!)
   ============================================================================= */

.doc-fluxos-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  justify-content: center;
}

.doc-fluxo-btn {
  background: var(--doc-panel-2);
  border: 1px solid var(--doc-border);
  color: var(--doc-text);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.doc-fluxo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
  transition: left 0.6s ease;
}

.doc-fluxo-btn:hover::before {
  left: 100%;
}

.doc-fluxo-btn:hover {
  background: var(--doc-accent);
  border-color: var(--doc-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--doc-glow);
}

.doc-fluxo-btn.ativo {
  background: var(--doc-accent);
  border-color: var(--doc-accent);
  box-shadow: 0 4px 12px var(--doc-glow);
  font-weight: 600;
}

.doc-fluxo-conteudo {
  display: none;
  animation: doc-fadeIn 0.4s ease-out;
}

.doc-fluxo-conteudo.ativo {
  display: block;
}

/* =============================================================================
   DIAGRAMA CONTAINER (NOVO!)
   ============================================================================= */

.doc-diagrama-container {
  background: var(--doc-panel-2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--doc-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.doc-diagrama-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.05), transparent);
  transition: left 0.7s ease;
}

.doc-diagrama-container:hover::before {
  left: 100%;
}

.doc-diagrama-container:hover {
  border-color: var(--doc-accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.doc-diagrama-titulo {
  color: var(--doc-accent);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================================================
   ESTADO CARD (CORRIGIDO COM PREFIXO doc-)
   ============================================================================= */

.doc-estado-card {
  background: var(--doc-panel);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--doc-accent);
}

.doc-estado-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.doc-estado-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}

.doc-estado-label {
  font-weight: 600;
  min-width: 80px;
}

.doc-estado-valor {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.doc-estado-cheio {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.doc-estado-vazio {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.doc-estado-interno {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.doc-estado-rota {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.doc-estado-cliente {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.doc-estado-emprestado {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.doc-estado-locado {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* =============================================================================
   REGRA CARD (CORRIGIDO COM PREFIXO doc-)
   ============================================================================= */

.doc-regra-card {
  background: rgba(34, 211, 238, 0.05);
  border: 1px dashed var(--doc-accent);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.doc-regra-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid var(--doc-border);
}

.doc-regra-item:last-child {
  border-bottom: none;
}

.doc-regra-icone {
  font-size: 1.2rem;
  min-width: 2rem;
}

/* =============================================================================
   LEGENDA (NOVA!)
   ============================================================================= */

.doc-legenda {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--doc-border);
  width: 100%;
}

.doc-legenda-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--doc-muted);
}

.doc-legenda-cor {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* =============================================================================
   ÍCONE COM SLASH (cortado) para offline
   ============================================================================= */

.doc-icons-slash {
  position: relative;
  display: inline-block;
}

.doc-icons-slash i {
  position: relative;
  z-index: 1;
}

.doc-icons-slash::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  right: -5px;
  height: 3px;
  background: rgba(239, 68, 68, 0.8);
  transform: rotate(-15deg) translateY(-50%);
  z-index: 2;
  border-radius: 2px;
}

/* =============================================================================
   ALERTAS INFORMATIVOS (NOVO!)
   ============================================================================= */

.doc-alert-info {
  background: rgba(236, 72, 153, 0.1);
  border-left: 4px solid var(--doc-pink);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--doc-text);
  transition: all 0.3s ease;
}

.doc-alert-info:hover {
  background: rgba(236, 72, 153, 0.15);
  border-left-width: 6px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.doc-alert-info p {
  margin-bottom: 0.5rem;
}

.doc-alert-info p:last-child {
  margin-bottom: 0;
}

.doc-alert-info ul {
  margin-left: 1.5rem;
  color: var(--doc-muted);
}

.doc-alert-info li {
  margin-bottom: 0.25rem;
}

.doc-alert-info strong {
  color: var(--doc-pink);
}

.doc-alert-warning {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--doc-text);
  transition: all 0.3s ease;
}

.doc-alert-warning:hover {
  background: rgba(239, 68, 68, 0.15);
  border-left-width: 6px;
}

/* =============================================================================
   CODE BLOCKS
   ============================================================================= */

.doc-code-block {
  background: var(--doc-code);
  border: 1px solid var(--doc-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
}

.doc-code-block:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.doc-code-key {
  color: #93c5fd;
}

.doc-code-string {
  color: #a7f3d0;
}

.doc-code-comment {
  color: #64748b;
}

.doc-code-number {
  color: #fbbf24;
}

/* =============================================================================
   DIAGRAM CONTAINERS (Mermaid)
   ============================================================================= */

.doc-diagram-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--doc-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  transition: all 0.3s ease;
}

.doc-diagram-container:hover {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.doc-diagram-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--doc-accent-2);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.doc-diagram-container:hover .doc-diagram-title {
  color: var(--doc-accent);
  letter-spacing: 0.1em;
}

/* =============================================================================
   LISTS
   ============================================================================= */

.doc-list {
  list-style: none;
  padding-left: 0;
}

.doc-list-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1rem;
}

.doc-list-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--doc-accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.doc-list-item:hover {
  padding-left: 1.5rem;
  border-bottom-color: rgba(34, 211, 238, 0.3);
}

.doc-list-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.doc-list-item:last-child {
  border-bottom: none;
}

/* =============================================================================
   TABLES
   ============================================================================= */

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.doc-table th {
  background: var(--doc-panel);
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--doc-border);
  font-weight: 600;
  transition: all 0.3s ease;
}

.doc-table th:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--doc-accent);
}

.doc-table td {
  padding: 0.75rem;
  border: 1px solid var(--doc-border);
  transition: all 0.3s ease;
}

.doc-table tr:hover td {
  background: rgba(34, 211, 238, 0.05);
}

/* =============================================================================
   OPERATIONS TABLE (NOVO!)
   ============================================================================= */

.doc-operations-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.75rem;
  overflow: hidden;
}

.doc-operations-table th,
.doc-operations-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--doc-border);
}

.doc-operations-table th {
  background: rgba(59, 130, 246, 0.15);
  font-weight: 600;
  color: var(--doc-accent);
}

.doc-operations-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

/* Status OK/NO */
.doc-status-ok { 
  color: #22c55e; 
  font-weight: 600; 
}

.doc-status-no { 
  color: #ef4444; 
  font-weight: 600; 
}

/* =============================================================================
   SECTION HEADER WITH BUTTON (NOVO!)
   ============================================================================= */

.section-header-with-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-header-with-btn .doc-section-title {
  margin-bottom: 0;
}

/* =============================================================================
   TASKBAR ICONS (NOVO!)
   ============================================================================= */

.taskbar-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.taskbar-icon {
  background: rgba(59, 130, 246, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.taskbar-icon i {
  font-size: 18px;
  color: #3b82f6;
}

.taskbar-icon:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

/* =============================================================================
   INDICADORES GRID (NOVO!)
   ============================================================================= */

.doc-indicadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.doc-indicador-card {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid var(--doc-border);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

.doc-indicador-card:hover {
  border-color: var(--doc-accent);
  transform: translateY(-3px);
}

.doc-indicador-card h5 {
  color: var(--doc-accent);
  margin-bottom: 0.75rem;
}

/* =============================================================================
   QUICK ACCESS BUTTON
   ============================================================================= */

.doc-quick-access {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  animation: doc-fadeIn 0.5s ease-out;
}

.doc-quick-access-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--doc-accent), var(--doc-accent-2));
  color: var(--doc-bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.doc-quick-access-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.doc-quick-access-btn:hover::before {
  left: 100%;
}

.doc-quick-access-btn:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--doc-glow);
  animation: doc-pulse 2s infinite;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.doc-footer {
  border-top: 1px solid var(--doc-border);
  background: rgba(11, 15, 20, 0.9);
  padding: 1.5rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.doc-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--doc-accent), transparent);
}

.doc-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.doc-footer-text {
  color: var(--doc-muted);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.doc-footer:hover .doc-footer-text {
  color: var(--doc-text);
}

.doc-footer-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* =============================================================================
   SCROLLBAR PERSONALIZADA
   ============================================================================= */

.doc-page::-webkit-scrollbar {
  width: 10px;
}

.doc-page::-webkit-scrollbar-track {
  background: var(--doc-panel);
}

.doc-page::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--doc-accent), var(--doc-accent-2));
  border-radius: 5px;
  transition: all 0.3s ease;
}

.doc-page::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--doc-accent-2), var(--doc-accent));
  box-shadow: 0 0 10px var(--doc-glow);
}

/* =============================================================================
   RESPONSIVIDADE
   ============================================================================= */

@media (max-width: 768px) {
  .doc-header-content,
  .doc-main {
    padding: 0;
    margin: 0;
  }

  .doc-hero-section {
    padding: 0;
    margin: 0;
  }

  .doc-hero-title {
    font-size: 1.5rem;
  }

  .doc-hero-subtitle {
    font-size: 1rem;
  }

  .doc-quick-stats {
    grid-template-columns: 1fr;
  }

  .doc-section {
    padding: 1.25rem;
  }

  .doc-phase-system {
    grid-template-columns: 1fr;
  }

  .doc-footer-content {
    flex-direction: column;
    text-align: center;
  }

  .doc-card:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .doc-fluxos-menu {
    flex-direction: column;
    align-items: stretch;
  }
  
  .doc-fluxo-btn {
    justify-content: center;
  }
  
  .doc-estado-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .doc-estado-item {
    flex-wrap: wrap;
  }
  
  .doc-estado-label {
    min-width: 60px;
  }

  /* Responsividade para as novas classes */
  .section-header-with-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .taskbar-icons {
    justify-content: center;
  }
  
  .doc-operations-table {
    font-size: 0.75rem;
  }
  
  .doc-operations-table th,
  .doc-operations-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .doc-hero-section {
    padding: 1rem;
  }
  
  .doc-hero-title {
    font-size: 1.25rem;
  }
  
  .doc-stat-number {
    font-size: 1.5rem;
  }
  
  .doc-section-title {
    font-size: 1.25rem;
  }
  
  .doc-grid-2,
  .doc-grid-3,
  .doc-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .doc-phase-number {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  
  .doc-phase-name {
    font-size: 1rem;
  }
  
  .doc-legenda {
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
  
  .doc-legenda-item {
    font-size: 0.75rem;
  }
  
  .doc-legenda-cor {
    width: 10px;
    height: 10px;
  }
}

/* =============================================================================
   UTILITÁRIOS ESPECÍFICOS
   ============================================================================= */

.doc-metric-highlight {
  color: var(--doc-blue);
  font-weight: 700;
}

.doc-metric-card {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--doc-blue);
  padding: 1rem;
  border-radius: 0.5rem;
}

.doc-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--doc-blue);
}

.doc-metric-label {
  font-size: 0.875rem;
  color: var(--doc-muted);
}

.doc-ranking-1 {
  color: gold;
  font-weight: 700;
}

.doc-ranking-2 {
  color: silver;
  font-weight: 700;
}

.doc-ranking-3 {
  color: #cd7f32;
  font-weight: 700;
}

/* =============================================================================
   EXEMPLOS DE CONFIGURAÇÃO
   ============================================================================= */

.doc-example-config {
  background: rgba(34, 211, 238, 0.05);
  border: 1px dashed var(--doc-accent);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1rem 0;
}

.doc-example-config pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--doc-accent);
}

.doc-example-config .doc-comment {
  color: var(--doc-muted);
  font-style: italic;
}

/* =============================================================================
   LOADING SPINNER
   ============================================================================= */

.doc-loader {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(34, 211, 238, 0.3);
  border-radius: 50%;
  border-top-color: var(--doc-accent);
  animation: doc-spin 1s ease-in-out infinite;
}

.doc-loader-container {
  text-align: center;
  padding: 2rem;
  color: var(--doc-muted);
}

/* =============================================================================
   CORREÇÃO DE SCROLL - COMPENSAR HEADER FIXO
   ============================================================================= */

[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 70px;
  }
}

/* =============================================================================
   MOBILE - DIAGRAMAS SEM PADDINGS ACUMULADOS
   ============================================================================= */
@media (max-width: 768px) {
    .doc-section,
    .doc-card,
    .doc-diagram-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .doc-section {
        padding: 1rem 0.5rem !important;
    }
    
    .doc-diagram-container {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 0.75rem 0 !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mermaid {
        min-width: 800px;
        transform: none;
    }
    
    .doc-section {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .doc-diagram-container::before {
        content: '←→ Deslize';
        position: absolute;
        bottom: 10px;
        left: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 20px;
        font-size: 11px;
        z-index: 10;
        pointer-events: none;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255,255,255,0.2);
    }
}

@media (max-width: 480px) {
    .mermaid {
        min-width: 700px;
    }
}

/* =============================================================================
   MODAL PARA DIAGRAMAS - VERSÃO FINAL
   ============================================================================= */
.doc-modal-container {
    scrollbar-width: thin;
    scrollbar-color: var(--doc-accent) var(--doc-panel);
    height: 100%;
    overflow: auto;
}

.doc-modal-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.doc-modal-container::-webkit-scrollbar-track {
    background: var(--doc-panel);
}

.doc-modal-container::-webkit-scrollbar-thumb {
    background: var(--doc-accent);
    border-radius: 6px;
}

.doc-modal-conteudo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.doc-modal-conteudo .mermaid {
    background: var(--doc-panel-2);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
}

/* =============================================================================
   RESPONSIVIDADE - TABELA VS CARDS
   ============================================================================= */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* Estilo para o link de voltar à página principal */
.doc-back-home {
    background: rgba(34, 211, 238, 0.1) !important;
    border-color: var(--doc-accent) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-back-home:hover {
    background: rgba(34, 211, 238, 0.2) !important;
    transform: translateX(-3px);
}

/* Floating navigation - TODOS na DIREITA */
.floating-nav {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #22d3ee;
    color: #22d3ee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-nav-btn:hover {
    background: #22d3ee;
    color: #0f172a;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .floating-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =============================================================================
   CLASSES ADICIONAIS PARA PARTICIPANTES
   Adicionar ao final do ondevou-doc.css
   ============================================================================= */

/* Botões específicos */
.btn-produto {
    background: transparent;
    border: 1px solid #f97316;
    color: #f97316;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-produto:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Badges específicos */
.doc-badge-form {
    background: #22c55e;
    color: white;
}

.doc-badge-table {
    background: #3b82f6;
    color: white;
}

.doc-badge-acoes {
    background: #f97316;
    color: white;
}

.doc-badge-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.doc-badge-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border-color: rgba(20, 184, 166, 0.3);
}

/* Ícone do módulo */
.sobre-modulo-icon {
    font-size: 2rem;
    color: #f97316;
    margin-bottom: 0.5rem;
}

/* Exemplo real (caso específico) */
.doc-example-real {
    background: rgba(249, 115, 22, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1rem 0;
    border-left: 4px solid #f97316;
}

.doc-example-real h3 {
    margin-top: 0;
    color: var(--doc-text);
}

/* Ajustes de scroll para os IDs (já existe, mas reforçar) */
[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    [id] {
        scroll-margin-top: 70px;
    }
}

/* =============================================================================
   CLASSES PARA PARTICIPANTES (BORDAS COLORIDAS E ALERTS)
   ============================================================================= */

/* Alertas com cores específicas */
.doc-alert-orange {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.doc-alert-blue {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Cards com bordas coloridas na parte superior */
.doc-card-border-red {
    border-top: 4px solid #ef4444;
}

.doc-card-border-blue {
    border-top: 4px solid #3b82f6;
}

.doc-card-border-green {
    border-top: 4px solid #22c55e;
}

/* Cards com bordas coloridas na lateral esquerda */
.doc-card-border-left-orange {
    border-left: 4px solid #f59e0b;
}

.doc-card-border-left-red {
    border-left: 4px solid #ef4444;
}

.doc-card-border-left-cyan {
    border-left: 4px solid #22d3ee;
}

/* Backgrounds específicos */
.doc-bg-panel {
    background: #0f172a;
}

/* Margens utilitárias */
.doc-mt-2 {
    margin-top: 0.5rem;
}

.doc-mt-3 {
    margin-top: 1rem;
}

.doc-mt-4 {
    margin-top: 1.5rem;
}