  :root {
    color-scheme: light;
  }

  /* --- Estils importats de problema_detail --- */
  html, body {
    background-color: #fafafa;
    color: #202123;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    font-size: 110%;
  }

  body {
    padding-top: 80px;
  }

  .content-container {
    max-width: 1000px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
  }

  h1, h2, h3, h4 {
    font-weight: 600;
    color: #111111;
    /* margin-top: 1.2em; */
    /* margin-bottom: 0.6em; */
  }

  p {
    margin-bottom: 1em;
  }

  strong, b {
    font-weight: 600;
    color: #000;
  }

  .text-muted {
    color: #6b6b6b !important;
  }

  .card-body {
    background-color: #fff;
    border-radius: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.2rem 1.3rem;
    transition: box-shadow 0.2s ease;
  }

  .card-body:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  }

  .apartat-header {
    font-size: 1rem;
  }

  a {
    color: #0b6ff8;
    text-decoration: none;
  }


  .btn {
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .btn-primary {
    background-color: #0b6ff8;
    border-color: #0b6ff8;
  }

  .btn-outline-primary {
    color: #0b6ff8;
    border-color: #0b6ff8;
  }

  .btn-outline-primary:hover {
    background-color: #0b6ff8;
    color: white;
  }

  .btn-outline-success {
    color: #2a9d8f;
    border-color: #2a9d8f;
  }

  .btn-outline-success:hover {
    background-color: #2a9d8f;
    color: white;
  }

  hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
  }

  .border-success {
    border-color: #2a9d8f !important;
  }

  .border-primary {
    border-color: #0b6ff8 !important;
  }


  .sidebar-collapse {
    background-color: #fdfdfd;
    border-radius: 0.5rem;
  }

  .katex {
    font-size: 1.05em;
  }

  .katex:not(.katex-display) {
    font-size: 1.2em; /* augmenta només fórmules inline */
  }
  .katex-display {
    margin: 1em 0;
    font-size: 1em;
  }

  nav.navbar {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }

  nav.navbar a {
      color: #fff !important; /* text clar sobre fons fosc */
  }

  /* @media (prefers-color-scheme: dark) {
      nav.navbar a {
          color: #f1f1f1 !important;
      }
  } */

  .badge-id {
    font-size: 0.65rem;
    padding: 0.2em 0.35em;
  }

  /* @media (prefers-color-scheme: dark) {
    html, body { background-color: #202123; color: #f1f1f1; }
    .content-container { background-color: #2a2b32; box-shadow: 0 0 15px rgba(0,0,0,0.3); }
    a { color: #4ea1ff; }
    .btn-outline-primary { color: #4ea1ff; border-color: #4ea1ff; }
    .btn-outline-primary:hover { background-color: #4ea1ff; color: #202123; }
  } */

  #logo{
    color: #F5D10D !important;
    font-family: "Stack Sans Headline", sans-serif;
    font-weight: 600; /* el pes que vulguis */
    font-size: 2rem;  /* opcional: modificar mida */
  }
