.input-container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.attribute-input.universal-keyboard-input {
  padding-right: 45px;
}

.keyboard-toggle-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
}

.keyboard-container {
  display: none; /* Hidden by default */
  margin-top: 10px;
}

.keyboard-container.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  opacity: 0.95;
  z-index: 10;
}

.keyboard-wrapper {
  width: 80%;
  margin: 0 auto;
  margin-top: 5%;
}

.language-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.language-buttons button {
  padding: 6px 16px;
  font-size: 16px;
  border-radius: 5px;
  background: transparent;
  box-shadow: 0 0 3px -1px rgba(0, 0, 0, 0.8);
  width: max-content;
  color: #2c3034;
  border: none;
}

.language-buttons button:hover {
  background: #efefef;
}

.language-buttons button:focus {
  outline: none;
}

.live-preview {
  margin-top: 10px;
  padding: 10px;
  color: #333;
  font-size: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  display: flex;
  justify-content: center;
}

.language-buttons button.active-lang {
  background: #2c3034; /* Dark background to indicate selection */
  color: #fff; /* White text for contrast */
  border: 1px solid #2c3034; /* Match the background */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.language-buttons button.active-lang:hover {
  background: #3a3d41; /* Slightly lighter on hover for active button */
}

/* Responsive styles */
@media (max-width: 768px) {
  .keyboard-wrapper {
    width: 90%;
    margin-top: 10%;
  }

  .language-buttons button {
    padding: 6px 12px;
    font-size: 14px; /* Smaller font for smaller screens */
  }

  .live-preview {
    font-size: 20px; /* Adjust font size */
    padding: 8px;
  }
}

@media (max-width: 576px) {
  .keyboard-wrapper {
    width: 95%;
    margin-top: 15%;
  }

  .language-buttons {
    gap: 5px; /* Reduce button gaps */
  }

  .language-buttons button {
    padding: 5px 10px;
    font-size: 12px; /* Further reduce button size */
  }

  .live-preview {
    font-size: 18px;
    padding: 6px;
  }
}
