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

body.dark-mode header,
body.dark-mode footer {
  background-color: #1e1e1e;
}

body.dark-mode header.navigation,
body.dark-mode .navigation-wrapper {
  background-color: #1e1e1e; 
  color: #ffffff;            
}

body.dark-mode .navigation-menu li a {
  color: #ffffff;
}

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

body.dark-mode pre.highlight code,
body.dark-mode pre code.hljs {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}

body.dark-mode pre.highlight,
body.dark-mode pre.hljs {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}

body.dark-mode code {
  background-color: #2b2b2b !important;
  color: #ffffff !important;
}

#dark-mode-toggle {
  background: #007acc;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

#dark-mode-toggle:hover {
    background: #005f99;
}

body.dark-mode #dark-mode-toggle {
    background: #1e1e1e;
    color: #ffffff;
    border: 1px solid #1e1e1e;
}

body.dark-mode #dark-mode-toggle:hover {
    background: #1e1e1e;
}
  
body.dark-mode .page-content,
body.dark-mode .post-content,
body.dark-mode .content-wrapper,
body.dark-mode .about-section,
body.dark-mode .post,
body.dark-mode .wrapper {
  background-color: #1e1e1e !important;
}

body.dark-mode header.navigation,
body.dark-mode .navigation-wrapper {
  background-color: #1e1e1e !important;
  color: #ffffff;
}

body.dark-mode .post-header {
  background-color: #1e1e1e !important;
  color: #ffffff;
}

.theme-toggle-button {
  position: static;
  transform: none;
  top: auto; left: auto;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5em;
  cursor: pointer;
  color: inherit;
  vertical-align: middle;
}

.theme-toggle-button:hover {
  color: #ccc;
}


body.dark-mode .theme-toggle-button {
  color: #fff;
}


.navigation-wrapper {
  position: relative;
}

.navigation .nav-link .theme-toggle-button i {
  display: inline-block;
  line-height: 1;
}

.navigation .navigation-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navigation .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transform: translateY(-4px);
}

.navigation .logo img {
  display: block;
  height: 64px;
  width: auto;
}

.navigation .navigation-menu {
  display: flex !important;
  align-items: center;
  gap: 1rem;                
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation .navigation-menu > li {
  display: inline-flex;
  align-items: center;
}

.navigation nav {
  margin-left: auto;
}
