.language-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1100;
}

.language-switcher .language-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8f9fa;
  background: rgba(33, 37, 41, 0.65);
  border-radius: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.15);
}

.language-switcher .language-dropdown > button .fas {
  font-size: 12px;
}

.language-switcher .language-menu {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 6px;
  min-width: 160px;
  border-radius: 8px;
  background: #2f3136; /* tamno siva, vidljivo na beloj pozadini */
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  position: absolute;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.language-switcher .language-menu li {
  margin: 0;
}

.language-switcher .language-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #e9ecef;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .15s ease, color .15s ease;
}

.language-switcher .language-menu a:hover,
.language-switcher .language-menu a:focus,
.language-switcher .language-menu a:active {
  background: #3a3d43; /* tamnija siva za jasniji hover */
  color: #ffffff;
}

.language-switcher .language-menu a:focus { outline: 2px solid rgba(255,255,255,0.2); outline-offset: 2px; }

.language-switcher .language-menu img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.25);
}

.language-switcher .language-menu li:hover > a,
.language-switcher .language-menu li:focus-within > a {
  background: #3a3d43; /* ensure consistent hover bg */
  color: #ffffff;
}

@media (max-width: 576px) {
  .language-switcher { top: 8px; right: 8px; }
  .language-switcher .language-dropdown > button { padding: 4px 8px; }
}

/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
  }
  
  .language-switcher .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(151, 148, 148);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .language-switcher .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgb(92, 90, 90);
    transform: translateY(-2px);
  }
  
  .language-switcher .language-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(15px);
    min-width: 150px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  .language-switcher .language-dropdown:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .language-switcher .language-menu li {
    margin: 0;
  }
  
  .language-switcher .language-menu a {
    color: rgb(124, 121, 121);
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  
  .language-switcher .language-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(109, 107, 107);
  }
  
  .language-switcher .language-menu a img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
  }
  
  .language-switcher .language-dropdown {
    position: relative;
    display: inline-block;
  }
  
  .language-switcher .fas {
    margin-right: 8px;
  }
  
  /* Dark theme for About Us and Contact pages */
  body[data-page="about"] .language-switcher .btn,
  body[data-page="contact"] .language-switcher .btn {
    background: rgba(100, 100, 100, 0.8);
    border: 1px solid rgba(100, 100, 100, 0.9);
    color: white;
  }
  
  body[data-page="about"] .language-switcher .btn:hover,
  body[data-page="contact"] .language-switcher .btn:hover {
    background: rgba(80, 80, 80, 0.9);
    border-color: rgba(80, 80, 80, 1);
    color: white;
  }
  
  body[data-page="about"] .language-switcher .language-menu,
  body[data-page="contact"] .language-switcher .language-menu {
    background: rgba(60, 60, 60, 0.95);
    border: 1px solid rgba(80, 80, 80, 0.8);
  }
  
  body[data-page="about"] .language-switcher .language-menu a:hover,
  body[data-page="contact"] .language-switcher .language-menu a:hover {
    background: rgba(80, 80, 80, 0.3);
    color: white;
  }
  