/* Language Toggle Styles */

.language-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle-switch {
  position: relative;
  display: inline-flex;
  width: 60px;
  height: 28px;
  background-color: #d3d3d3;
  border-radius: 34px;
  padding: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  align-items: center;
}

.language-toggle-switch input[type="checkbox"] {
  display: none;
}

.language-toggle-switch input[type="checkbox"]:checked + .slider {
  background-color: #0d6efd;
}

.language-toggle-switch input[type="checkbox"]:checked + .slider:before {
  transform: translateX(32px);
}

.language-toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
}

.language-toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.language-toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.language-toggle-label.active {
  color: #0d6efd;
  font-weight: 700;
}

/* Responsive design */
@media (max-width: 576px) {
  .language-toggle-container {
    gap: 6px;
  }

  .language-toggle-label {
    font-size: 11px;
  }

  .language-toggle-switch {
    width: 50px;
    height: 24px;
    padding: 3px;
  }

  .language-toggle-switch .slider:before {
    height: 18px;
    width: 18px;
  }

  .language-toggle-switch input[type="checkbox"]:checked + .slider:before {
    transform: translateX(26px);
  }
}
