.title {
    color: #00bfff
}

.top-menu {
  background-color: #000;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  width: 100%;
  align-items: center;
}

.top-menu li {
  padding: 0 10px;
}

.top-menu img {
  height: 30px;
  border-radius: 0;
  vertical-align: middle;
}

.top-menu a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.top-menu a:hover {
  background-color: #555;
}

.menu-avatar {
  height: 30px;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}

/* Ukrycie checkboxa */
.nav-toggle { display: none; }

/* Przycisk hamburgera */
.nav-toggle-label {
  position: fixed;
  top: 8px;
  right: 12px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  display: none;
}

.language-selector-container select {
  padding: 6px 12px;
  font-size: 14px;
  border: 0;
  border-radius: 0 !important;
  background-color: #222;
  color: white;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.language-selector-container select:hover,
.language-selector-container select:focus {
  border-color: #888;
  background-color: #333;
  outline: none;
}


/* Gdy checkbox jest zaznaczony, pokaż menu mobilne */
@media (max-width: 600px) {
  .nav-toggle-label {
    position: fixed;
    bottom: 15px;
    left: 15px;
    top: auto;  
    font-size: 32px;
    color: white;
    background: rgba(0,0,0,0.8);
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    z-index: 2001;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    user-select: none;
  }

  .top-menu {
    position: fixed;
    top: auto;
    bottom: 70px;
    left: 0;
    width: 70%;
    max-width: 300px;
    height: auto;
    max-height: 80vh;
    transform: translateX(-100vw);
    transition: transform 300ms ease-in-out;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 2000;
    border-radius: 0;
  }

  .nav-toggle:checked + .nav-toggle-label + .top-menu {
    transform: translateX(0);
  }

  .top-menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 0;
  }

  .top-menu li {
    width: 100%;
    padding: 12px 20px;
  }

  .top-menu a {
    width: 100%;
    text-align: left;
    display: block;
  }
  
  .language-selector-container select {
    width: 100%;
    font-size: 16px;
    padding: 8px 12px;
  }

}
