/* Central de Documentação & Manuais · Inglese Consultores S.A. */

.docs-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  min-height: calc(100vh - 70px);
}

.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  gap: 16px;
  flex-wrap: wrap;
}

.docs-header__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.docs-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.docs-header p {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

.docs-header__nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.docs-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.docs-nav-back:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.docs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.docs-nav-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.docs-nav-menu__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 6px 10px;
  margin-bottom: 2px;
}

.docs-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.docs-nav-item:hover {
  background: #f1f5f9;
}

.docs-nav-item.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.docs-nav-item__icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.docs-nav-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.docs-nav-item.is-active .docs-nav-item__title {
  color: #1d4ed8;
}

.docs-nav-item__subtitle {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.2;
}

.docs-sidebar-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

.docs-sidebar-info strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

/* Content Area */
.docs-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  min-height: 600px;
}

@media (max-width: 600px) {
  .docs-content {
    padding: 20px 18px;
  }
}

.docs-content-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
  flex-wrap: wrap;
}

.docs-content-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.docs-content-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.docs-content-subtitle {
  font-size: 0.9rem;
  color: #64748b;
}

.docs-content-actions {
  display: flex;
  gap: 8px;
}

.docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.docs-btn--copy {
  background: #0284c7;
  color: #ffffff;
}

.docs-btn--copy:hover {
  background: #0369a1;
}

.docs-btn--copy.is-copied {
  background: #10b981;
}

.docs-btn--print {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.docs-btn--print:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Typography Inside Body */
.docs-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.docs-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 16px 0;
  letter-spacing: -0.02em;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.docs-h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 12px 0;
  letter-spacing: -0.01em;
}

.docs-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0 10px 0;
}

.docs-h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #334155;
  margin: 16px 0 8px 0;
}

.docs-paragraph {
  margin: 0 0 16px 0;
}

.docs-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 32px 0;
}

.docs-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

.docs-link {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.docs-link:hover {
  color: #0369a1;
}

/* Lists */
.docs-list {
  margin: 0 0 18px 0;
  padding-left: 24px;
}

.docs-list li {
  margin-bottom: 8px;
}

/* Tables */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.docs-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table tr:nth-child(even) td {
  background: #fafcff;
}

/* Code Blocks */
.docs-code-block {
  background: #0f172a;
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.docs-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  padding: 8px 14px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-copy-code-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.docs-copy-code-btn:hover {
  background: #334155;
  color: #ffffff;
}

.docs-code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.docs-code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Alerts */
.docs-alert {
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.docs-alert__title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.docs-alert--note {
  border-left-color: #0284c7;
  background: #f0f9ff;
  color: #0369a1;
}

.docs-alert--important {
  border-left-color: #8b5cf6;
  background: #f5f3ff;
  color: #6d28d9;
}

.docs-alert--caution {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.docs-alert--tip {
  border-left-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.docs-alert--warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.docs-blockquote {
  border-left: 3px solid #cbd5e1;
  margin: 16px 0;
  padding: 4px 16px;
  color: #475569;
  font-style: italic;
}

/* Print styles */
@media print {
  body {
    background: #ffffff !important;
  }
  .no-print,
  .global-nav,
  .docs-sidebar,
  .docs-header__nav-links,
  .docs-content-actions {
    display: none !important;
  }
  .docs-page {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .docs-layout {
    display: block !important;
  }
  .docs-content {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

