/* Estilos Personalizados e Regras de Impressão */

.nav-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #f1f5f9;
  border-bottom-color: #475569;
}

.nav-tab.active-tab {
  color: #34d399;
  border-bottom-color: #10b981;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Prose Markdown custom overrides */
.prose h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.4rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}
.prose h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.prose p {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}
.prose ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}
.prose ol {
  list-style-type: decimal;
  padding-left: 1.25rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}
.prose blockquote {
  border-left: 4px solid #10b981;
  padding-left: 0.75rem;
  color: #475569;
  font-style: italic;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  background-color: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

/* ESTILOS DE IMPRESSÃO A4 (FORMATO OFICIAL) */
@media print {
  header, footer, nav, .lg\:col-span-1, button, #studentDetailModal, #configModal {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tab-content {
    display: none !important;
  }

  /* Exibe a aba ativa ou o container de impressão */
  .tab-content.block {
    display: block !important;
  }

  #peiOutputContainer, #planoOutputContainer {
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    padding: 0 !important;
    background: white !important;
  }

  .prose h1 {
    font-size: 16pt !important;
    border-bottom: 1pt solid #333 !important;
  }

  .prose h2 {
    font-size: 14pt !important;
  }

  .prose h3 {
    font-size: 12pt !important;
  }

  @page {
    size: A4 portrait;
    margin: 20mm 15mm 20mm 15mm;
  }
}
