/* =================== BASE =================== */
body {
  background-color: #f4f4f4;
  color: #2c3e50;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

h1, h2, h3, h4, h5, h6 {
  color: #ff66cc;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #ff99dd;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #66ccff;
  text-decoration: underline;
}

body.dark-mode a {
  color: #66ccff;
}

body.dark-mode a:hover {
  color: #99ddff;
}

/* =================== CODE =================== */
code, pre {
  background-color: #1e1e1e;
  color: #66ccff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* =================== MENU =================== */
.menu-principal {
  background-color: #ffffff;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

body.dark-mode .menu-principal {
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
}

.menu-container {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo img {
  height: 40px;
  vertical-align: middle;
}

.links a {
  margin: 0 12px;
  color: #2c3e50;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #3498db;
}

body.dark-mode .links a {
  color: #e0e0e0;
}

body.dark-mode .links a:hover {
  color: #66ccff;
}

/* =================== SETTINGS BUTTON =================== */
.config-menu {
  position: relative;
  display: inline-block;
}

#config-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #2c3e50;
}

body.dark-mode #config-btn {
  color: #e0e0e0;
}

#config-options {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  list-style: none;
  padding: 10px;
  margin: 0;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

body.dark-mode #config-options {
  background-color: #222;
  border: 1px solid #444;
}

#config-options li {
  margin: 5px 0;
}

#config-options button {
  background: none;
  border: none;
  cursor: pointer;
  color: #2c3e50;
}

body.dark-mode #config-options button {
  color: #e0e0e0;
}

#config-options.show {
  display: block;
}

/* =================== SEARCH =================== */
#search-container {
  text-align: center;
  margin: 20px 0;
}

#search-input {
  width: 60%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

body.dark-mode #search-input {
  background-color: #2a2a2a;
  color: #f0f0f0;
  border: 1px solid #555;
}

#search-results {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#search-results li {
  margin: 5px 0;
}

/* =================== SIDEBAR =================== */
.sidebar {
  flex: 1;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  max-width: 300px;
  margin: 20px auto;
}

body.dark-mode .sidebar {
  background-color: #1f1f1f;
  color: #e0e0e0;
  border: 1px solid #333;
}

body.dark-mode .sidebar a {
  color: #66ccff;
}

body.dark-mode .sidebar a:hover {
  color: #99ddff;
}

/* =================== FOOTER =================== */
.rodape {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 4px solid #3498db;
}

.rodape a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.rodape a:hover {
  color: #3498db;
  text-decoration: underline;
}

body.dark-mode .rodape {
  background-color: #101010;
  border-top-color: #66ccff;
}

body.dark-mode .rodape a {
  color: #e0e0e0;
}

body.dark-mode .rodape a:hover {
  color: #66ccff;
}

/* =================== WIDTH =================== */
.content {
  max-width: 660px;
  margin: 0 auto;
  padding: 20px;
}

/* =================== RESPONSIVENESS =================== */
@media (max-width: 600px) {
  .rodape {
    font-size: 0.85rem;
    padding: 20px 10px;
  }

  .rodape a {
    display: inline-block;
    margin: 4px 6px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
}
