/* ==========================================================================
   HTEDU GR Generator & Document Preview Styles
   ========================================================================== */

.gr-tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border, #e2e8f0);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1px;
}

.gr-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.65rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  border-radius: 4px 4px 0 0;
}

.gr-tab-btn:hover {
  color: var(--navy-950, #0f172a);
  background: var(--surface-subtle, #f8fafc);
}

.gr-tab-btn.active {
  color: var(--blue-700, #1d4ed8);
  border-bottom-color: var(--blue-700, #1d4ed8);
  background: var(--surface-subtle, #f8fafc);
}

.gr-tab-pane {
  display: none;
}

.gr-tab-pane.active {
  display: block;
}

/* Formal Document Paper */
.gr-doc-paper {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  padding: 2.5rem 3rem;
  margin: 1.25rem 0 2rem 0;
  max-width: 900px;
  line-height: 1.7;
  font-size: 0.98rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.language-marathi .gr-doc-paper {
  font-family: "Mukta", "Nirmala UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  font-size: 1.02rem;
}

.gr-doc-header {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.gr-doc-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem 0;
  color: #0f172a;
  text-transform: uppercase;
}

.gr-doc-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.gr-doc-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #475569;
  margin-top: 0.75rem;
  font-weight: 500;
}

.gr-doc-content {
  color: #1e293b;
}

.gr-doc-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.5rem 0 0.6rem 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.3rem;
}

.gr-doc-content p {
  margin: 0.6rem 0;
  text-align: justify;
}

.gr-doc-content ol, .gr-doc-content ul {
  padding-left: 1.75rem;
  margin: 0.6rem 0;
}

.gr-doc-content li {
  margin-bottom: 0.5rem;
}

.gr-doc-content blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: #475569;
  font-style: italic;
}

/* Compact summary banner */
.gr-summary-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.gr-summary-pills {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gr-action-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}
