* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    scroll-margin-top: 120px;
}

/* ========== NAVBAR ========== */
.navbar {
  background: #111;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 40px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #FFA500;
}

/* Botão menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.sidebar-left {
    width: 20%;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    position: fixed;
    top: 60px; /* Ajuste conforme a altura do header */
    height: calc(100% - 60px); /* Ajuste conforme a altura do header */
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-left {
    left: 0;
}
.sidebar-left h3, .sidebar-right h3 {
    color: #f9a431;
    margin-bottom: 10px;
}

.sidebar-left ul, .sidebar-right ul, .related ul {
    list-style-type: none;
    padding-left: 0;
}

.sidebar-left ul li, .sidebar-right ul li, .related ul li {
    margin-bottom: 15px;
}

.sidebar-left ul li a, .sidebar-right ul li a, .related ul li a {
    text-decoration: none;
    color: #1e1e1e;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-left ul li a i, .sidebar-right ul li a i {
    margin-right: 10px;
}

.sidebar-left ul li a:hover, .sidebar-right ul li a:hover, .related ul li a:hover {
    background-color: #e1e1e1;
    color: #f9a431;
}

main.content {
    margin: 60px 0% 20px 20%; /* Ajuste o valor conforme a largura das sidebars */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    
}

.content h2 {
    color: #f9a431;
    margin-bottom: 20px;
    scroll-margin-top: 120px;
}

.content h3 {
    margin: 20px 0;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.content table, th, td {
    border: 1px solid #ddd;
    padding: 12px;
}

.content th {
    background-color: #f0f0f0;
}

.extra-content {
    background-color: #f7f7f7;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.extra-content h2 {
    color: #f9a431;
    margin-bottom: 15px;
}

.extra-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.extra-content li {
    margin-bottom: 10px;
}

.welcome-section h1 {
    color: #f9a431;
    margin-bottom: 20px;
}

.welcome-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

main hr {
    color: #00000000;
    border: 1px solid #ddd;
    margin: 20px;
}

.docs {
    padding-left: 10px;
    padding-right: 10px;
}

.docs p {
    margin-bottom: 5px;
    padding-left: 5px;
}

.docs code {
    background-color: #0001;
}

.docs pre {
    background-color: #0001;
    display: block;
    white-space: pre-wrap;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.307);
    margin-top: 10px;
    margin-bottom: 10px;
}

.docs pre code {
    background-color: #0000;
    display: block;
    white-space: pre-wrap;
    padding: 5px;
    border-radius: 5px;
}

.docs ul {
    margin-left: 25px;
    list-style-type: square;
}

.docs blockquote {
    border-left: 3px solid #ccc;
    padding-left: 10px;
}


@media (max-width: 768px) {
  /* Navbar mobile */
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #111;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
    width: 200px;
  }
  .nav-links.open {
    display: flex;
  }
  .sidebar-left, .sidebar-right {
    display: none;
  }
  main.content {
    margin: 60px 0px 20px 0px;
  }
}

/* Tema Prism.js - Tucano */
code[class*="language-"],
pre[class*="language-"] {
  color: #fff;
  background: #000;
  font-family: 'Fira Code', monospace;
  
  text-shadow: none;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  
  tab-size: 4;
  hyphens: none;
}

/* Container do bloco de código */
pre[class*="language-"] {
  padding: 1rem;
  margin: 1em 0;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #222;
}

/* Tokens de sintaxe */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #777;
  font-style: italic;
}

.token.punctuation {
  color: #ccc;
}

.token.selector,
.token.tag,
.token.keyword {
  color: #FFA500; /* Laranja Tucano */
}

.token.property,
.token.boolean,
.token.number {
  color: #FFB84D; /* Laranja mais claro */
}

.token.operator,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #4DD9FF; /* Azul vibrante */
}

.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #fff;
}

.token.atrule,
.token.attr-value,
.token.function {
  color: #FFD966; /* Amarelo dourado */
}

.token.regex,
.token.important,
.token.variable {
  color: #FF4D4D; /* Vermelho de destaque */
}

.token.deleted {
  color: #f66;
}

/* Destaque da linha ativa */
pre[data-line] {
  position: relative;
}
pre[class*="language-"] > code[data-line] {
  position: relative;
  z-index: 1;
}
.line-highlight {
  background: rgba(255, 165, 0, 0.1);
  box-shadow: inset 5px 0 0 #FFA500;
}