.checkbox {
  height: 20px;
  width: 40px;
  background: #222;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: 0.5s;
  border: none;
  margin: 0;
  flex-shrink: 0;
}

.checkbox::before {
  height: 20px;
  width: 20px;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  background: linear-gradient(to bottom, #444, #222);
  border-radius: 20px;
  transform: scale(0.9);
  transition: 0.5s;
  z-index: 2;
}

.checkbox:not(.lang-toggle)::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 5px;
  width: 10px;
  height: 10px;
  background-image: url("/static/svg/moon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 3;
  transition: 0.5s;
}

.checkbox:not(.lang-toggle):checked {
  background: #eaeaea;
}

.checkbox:not(.lang-toggle):checked::before {
  left: 20px;
  background: linear-gradient(to bottom, #fff, #eaeaea);
}

.checkbox:not(.lang-toggle):checked::after {
  background-image: url("/static/svg/sun.svg");
  right: auto;
  left: 4px;
}

.checkbox.lang-toggle {
  background: url("/static/svg/uk-flag.svg") center/cover no-repeat;
}

.checkbox.lang-toggle::before {
  background: rgba(255, 255, 255, 0.2);
}

.checkbox.lang-toggle:checked {
  background: linear-gradient(to bottom, #fff 50%, #DC143C 50%) center/cover no-repeat;
}

.checkbox.lang-toggle:checked::before {
  left: 20px;
}

body {
  transition: background-color 0.5s, color 0.5s;
  background: #f8f8f8;
  color: #222;
}

.menu {
  background: rgba(255,255,255,0.95);
  border-right: 1px solid rgba(0,0,0,0.1);
}

.logo-name a { color: #222; text-decoration: none; }
.logo-title { color: #666; }
nav a { color: #222; opacity: 0.6; text-decoration: none; }
nav a:hover, nav a.active { opacity: 1; }
.privacy-link { color: #666; text-decoration: none; font-size: 0.7rem; }

body.dark-mode {
  background: #000;
  color: #fff;
}

body.dark-mode .menu {
  background: rgba(0,0,0,0.95);
  border-right: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .logo-name a { color: #fff; }
body.dark-mode .logo-title { color: #aaa; }
body.dark-mode nav a { color: #fff; }
body.dark-mode .privacy-link { color: #aaa; }