@import "./chat.css";
@import "./buttons.css";
@import "./driver_js.css";

*{
  scrollbar-width: thin;
  user-select: none;
}

#create-language-selector {
  display: none !important;
}

#content {
  height: 90% !important;
}

#left-pane {
  flex: 1;
}

#main-pane {
  flex: 2;
}

#main-pane-activity {
  display: flex !important;
  flex-direction: row;
  width: 100%;
  padding: 1rem;
  gap: 1rem;
}

#chat-screen {
  display: flex;
  flex: 1;
  box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  flex-direction: column;
  height: 100%;   /* Or 100% if inside another full-height container */
}

#chat-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.5rem;
  border-bottom: 1.5px solid #CFE1E1;
  color: #808B9A;
  /* height: auto by default */
}

#messages-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Remove height: 60% */
}


#output-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.5rem;
  border-bottom: 1.5px solid #CFE1E1;
  color: #808B9A;
}


#output-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.04);
  border-radius: 24px;
}

#output-container {
  flex: 1;
  gap: 0.5rem;
  overflow: hidden;
}

/* iframe,
iframe>html>body {
  overflow: hidden;
} */

.blurred {
  filter: blur(10px);
  -webkit-filter: blur(10px);
}

#output-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.output-buttons-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 4px;
  padding: 0.5rem;
}


.chat-message-bubble {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  margin: 1rem;
  border-radius: 0.5rem;
  background-color: #EDF6FC;
}

.ai-bubble {
  background-color: #F0F7F0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  color: #0C3755;
  font-size: 0.75rem;
  font-weight: 600;
}

.ai-bubble .chat-message-header {
  color: #2e7d32;
}

.chat-message-text {
  color: #2C2D3A;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
}

.thinking-message {
  font-size: 0.85rem;
  color: #808B9A;
  font-style: italic;
  padding: 0.3rem 0.75rem;
}

.error-message {
  font-size: 0.85rem;
  color: #e53935;
  padding: 0.3rem 0.75rem;
}

.remove-bubble {
  animation: fadeSlideOut 0.3s ease-out forwards;
}

@keyframes fadeSlideOut {
  to { opacity: 0; transform: translateY(-10px); height: 0; padding: 0; margin: 0; overflow: hidden; }
}

#input-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d3e0db;
  border-radius: 18px;
  padding: 6px 10px;
  background-color: #f9fbfa;
  margin: 0.5rem;
  box-sizing: border-box;
}

#chat-input {
  flex: 1;
  min-height: 2.5em;
  max-height: 5em;
  overflow-y: auto;
  resize: none;
  padding: 6px 8px;
  border: none;
  outline: none;
  line-height: 1.4;
  color: #333;
  background: transparent;
  box-sizing: border-box;
  font-size: 0.9rem;
}

#chat-input::placeholder {
  color: #a0a9a5;
}

#send-button {
  border: 1px solid #e65796;
  outline: none;
  background: #f263a2;
  box-shadow: 0px 2px 0px 0px #e65796;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#send-button:hover {
  background: #e65796;
  box-shadow: 0px 2px 0px 0px #ff98c5;
  border-color: #e65796;
}

#send-button:active {
  background: #e65796;
  box-shadow: none;
}

#send-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#send-button svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

iframe {
  position: relative;
  z-index: 3;
}

lottie-player {
  position: relative;
  z-index: 100;
  /* top: 50%; */
  /* left: 50%; */
  transform: translate(0%, -100%);
  /* width: 100px; */
  /* height: 100px; */
}

.hidden {
  visibility: hidden !important;
}

.button {
  &:disabled {
    cursor: not-allowed;
    background: #FFFFFF;
    border: 1px solid #D3DBE4;
    box-shadow: 0px 2px 0px #D3DBE4;
  }

  &:disabled>svg {
    opacity: 0.5;
  }

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  gap: 4px;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid #D3DBE4;
  box-shadow: 0px 2px 0px #D3DBE4;
  border-radius: 8px;
}

/* validation response */
.validation-response {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  /* padding: 1rem; */
  /* border-radius: 0.5rem; */
}

.validation-response-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 0.25rem;
  border-radius: 0.5rem;
  gap: 0.1rem;
  border: 1px solid var(--colors-teal-light);
}

.side-button:disabled::after {
  top: auto;
  transform: translateX(0%) translateY(0%);
  margin-right: 8%;
}