/* Language Dropdown Styles - Global */
.language-dropdown {
  position: relative;
  cursor: pointer;
  margin-bottom: 20px;
  z-index: 1000;
}

.selected-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  transition: background-color 0.3s;
}

.selected-lang:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.selected-lang img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
}

.selected-lang i {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.3s;
}

.language-dropdown.open .selected-lang i {
  transform: rotate(180deg);
}

.lang-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  margin-top: 4px;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}

.language-dropdown.open .lang-options {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.lang-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-option img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
}

.lang-option span {
  flex: 1;
}

/* Toast notification styles */
.toast {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
  .selected-lang {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .lang-option {
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .lang-options {
    max-height: 250px;
  }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .lang-options {
    background-color: #1a1a1a;
    border: 1px solid #333;
  }
  
  .lang-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
  .selected-lang {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
  }
  
  .selected-lang:hover {
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .lang-options {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
  }
  
  .lang-option {
    color: #333;
  }
  
  .lang-option:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
} 