/* ======================================================
   LIGHT THEME – HIGH READABILITY (WEIGHT-TUNED)
   ====================================================== */

.bg-white {
  background-color: #f8fafc !important;
  color: #0b1220 !important;
}

/* File content text – slightly bolder than normal */
.bg-white .file-content {
  color: #0b1220;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 550; /* 👈 tuned for readability */
}

/* Paragraph spacing */
.bg-white .file-content p {
  margin-bottom: 1rem;
}

/* Strong / bold text – clearly stronger */
.bg-white .file-content strong,
.bg-white .file-content b {
  font-weight: 700;
  color: #020617;
}

/* Headings – strongest */
.bg-white .file-content h1,
.bg-white .file-content h2,
.bg-white .file-content h3 {
  color: #020617;
  font-weight: 750;
}

/* -----------------------------
   Code blocks (light)
----------------------------- */
.bg-white .file-content pre {
  background: #eef2f7 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 2.5rem 1rem 1rem 1rem !important;
  margin: 1.2rem 0 !important;
  overflow-x: auto !important;
}

.bg-white .file-content pre code {
  color: #020617 !important;
  background: transparent !important;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  font-weight: 500;
}

/* Inline code */
.bg-white .file-content code:not(pre code) {
  background: #e2e8f0;
  color: #020617;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  font-weight: 500;
}

/* -----------------------------
   Tables (light)
----------------------------- */
.bg-white .file-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.bg-white .file-content th,
.bg-white .file-content td {
  padding: 0.6rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.bg-white .file-content th {
  background: #e2e8f0;
  font-weight: 700;
  color: #020617;
}

.bg-white .file-content td {
  color: #0b1220;
  font-weight: 550;
}

.bg-white .file-content table tr:hover {
  background: #f1f5f9;
}

/* -----------------------------
   Links (light)
----------------------------- */
.bg-white .file-content a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 600;
}

.bg-white .file-content a:hover {
  color: #1e40af;
}

/* ======================================================
   DARK THEME (UNCHANGED / ORIGINAL)
   ====================================================== */

/* Tables (dark) */
.file-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: rgba(0, 20, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.file-content table th,
.file-content table td {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
  text-align: left;
}

.file-content table th {
  background: rgba(0, 255, 136, 0.1);
  font-weight: bold;
  color: #00ff88;
}

.file-content table tr:hover {
  background: rgba(0, 255, 136, 0.05);
}

.file-content table td {
  color: #4ade80;
}

/* Code blocks (dark) */
.file-content pre {
  background: #0a2818 !important;
  border: 1px solid rgba(0, 255, 136, 0.3) !important;
  border-radius: 4px !important;
  padding: 2.5rem 1rem 1rem 1rem !important;
  margin: 1rem 0 !important;
  overflow-x: auto !important;
  position: relative !important;
}

.file-content pre code {
  color: #4ade80 !important;
  background: transparent !important;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

/* Inline code (dark) */
.file-content code:not(pre code) {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}
