@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  width: 450px;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
}

.chat-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
}

.header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e3e7;
  box-shadow: 0px 4px 12px rgba(226, 227, 231, 0.8);
}

h1 {
  background: linear-gradient(to right bottom, #ff6600, #9747ff);
  background-clip: text;
  color: transparent;
  font-size: 18px;
  font-weight: 600;
}

.options-menu {
  margin-left: auto;
  cursor: pointer;
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  width: 200px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 8px;
  flex-direction: column;
  z-index: 10;
}

#clear-history-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #757582;
  font-size: 14px;
  padding: 4px 8px;
}

#clear-history-btn:hover {
  color: #101010;

  svg {
    fill: #101010;
  }
}

.footerContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
}

.footerContainer a {
  text-decoration: none;
  color: #757582;
}

.flowerLogo {
  width: 12px;
  height: auto;
  text-decoration: none;
}

.footerText {
  color: #757582;
  font-size: 8px;
  text-decoration: none;
}

a {
  text-decoration: none;
}

.footerText a {
  text-decoration: none;
}

.footerText span {
  text-decoration: none;
  background: linear-gradient(to right bottom, #ff6600, #9747ff);
  background-clip: text;
  color: transparent;
}

.divider {
  border-top: 1px solid #ddd;
  margin: 12px 0;
}

.chat-history {
  flex-grow: 1;
  overflow-y: scroll;
  scrollbar-width: none;
  font-size: 12px;
}

.message-row {
  display: flex;
  width: 100%;
  margin-bottom: 4px;
}

.message-bubble {
  max-width: 80%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 10px;
  line-height: 1.5;
  word-wrap: break-word;
  display: inline-block;
}

.user-message {
  background-color: #f8f9fc;
  align-self: flex-end;
  margin-left: auto;
  color: #101010;
  border-bottom-right-radius: 0px;
  margin-right: 7px;
}

.assistant-message .bubbleText {
  background: linear-gradient(to right bottom, #0063e6, #9747ff);
  background-clip: text;
  color: transparent;
}

.assistant-message {
  background-color: #e6f3ff;
  align-self: flex-start;
  margin-right: auto;
  white-space: pre-wrap;
  border-bottom-left-radius: 0px;
}

.assistant-container:hover {
  .assistant-message {
    background-color: #cce6ff;
  }
}

.assistant-container {
  max-width: 80%;
  display: flex;
  gap: 5px;
  margin-left: 7px;
}

.icon-container {
  align-self: flex-end;
}

.input-section {
  box-shadow: 0px -4px 12px rgba(226, 227, 231, 0.5);
  padding: 12px;
}

.input-area {
  display: flex;
  align-items: center;
}

#message-input {
  flex: 1;
  padding: 10px;
  padding-right: 60px;
  border: 1px solid #f8f9fc;
  border-radius: 12px;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
}

textarea {
  background: #f8f9fc;
  color: #757582;
  font-size: 12px;
  width: 100%;
  height: 40px;
  overflow-wrap: break-word;
  font-family: 'Inter', sans-serif;
  scrollbar-width: none;
}

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

#send-button {
  background: none;
  border: none;
  position: absolute;
  right: 10px;
  /* height: 100%; */
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#default-send {
  display: inline;
}

#hover-send {
  display: none;
}

#send-button:hover #default-send {
  display: none;
}

#send-button:hover #hover-send {
  display: inline;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  height: 10px;
  width: 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.prompt-suggestions {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 70px;
  left: 20px;
  right: 20px;
  transition:
    opacity 2s ease,
    transform 2s ease;
  transform: translateY(15px);
}

.prompt-suggestions.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.prompt {
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #f8f9fc;
  font-size: 12px;
  color: #0070ff;
  cursor: pointer;
  max-width: fit-content;
  overflow: hidden;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  box-shadow:
    0px 6px 20px 8px rgba(0, 112, 255, 0.25),
    0px 6px 25px rgba(151, 71, 255, 0.25);
}

.prompt:hover {
  background-image: linear-gradient(to right bottom, #0070ff, #9747ff);
  color: white;
  transform: scale(1.02);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0px 8px 30px 12px rgba(0, 112, 255, 0.3),
    0px 8px 35px rgba(151, 71, 255, 0.3);
}
