/* Grace3 Chatbox Styles */

section {
  padding: 0 20px;
}

.sliding-content-area {
  height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.white-background-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #ffffff 0%, #F8F0EA 100%);
  z-index: -1;
  transition: transform 1s ease-out
}

.white-background-circle.show {
  transform: translate(-50%, -50%) scale(1);
}

.chatbox-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #1e1e1e;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.chatbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f0ea;
  transition: height 0.5s ease, opacity 0.5s ease, padding-top 0.5s ease, padding-bottom 0.5s ease;
  z-index: 1000;
}

.chatbox-header.hidden {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: height 0.0s;
  overflow: hidden;
}

.waveform-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.waveform-animation {
  opacity: 0.8;
}

.dropdown-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.model-selector,
.scenario-selector {
  position: relative;
  display: inline-block;
}

.model-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f0ea;
  border: 1px solid #dadce0;
  border-radius: 8px;
  cursor: pointer;
  font-family: Aeonik;
  font-size: 14px;
  color: #1e1e1e;
  transition: all 0.2s ease;
}

.model-dropdown:hover {
  background: #f0f0f0;
}

.model-dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.model-dropdown.open .model-dropdown-arrow {
  transform: rotate(180deg);
}

.model-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  max-height: 250px;
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.model-dropdown-menu.open {
  display: block;
  z-index: 1000;
}

.model-option {
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  position: relative;
}

.model-option:last-child {
  border-bottom: none;
}

.model-option:hover {
  background: #f8f9fa;
}

.model-option.selected {
  background: #f8f9fa;
}

.model-option.selected::after {
  content: "✓";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e1e1e;
  font-weight: bold;
}

.model-name {
  font-family: Aeonik;
  font-size: 16px;
  font-weight: 500;
  color: #1e1e1e;
  margin-bottom: 4px;
}

.model-description {
  font-family: Aeonik;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.model-badge-pro {
  background: #f8f9fa;
  color: #666;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.more-models {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Aeonik;
  font-size: 16px;
  color: #1e1e1e;
}

.more-models-arrow {
  width: 16px;
  height: 16px;
  color: #666;
}

.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  transition: height 0.5s ease, opacity 0.5s ease, padding-top 0.5s ease, padding-bottom 0.5s ease;
}

.chat-messages.hidden {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: height 0.0s;
  overflow: hidden;
}

.chat-input-area {
  width: 100%;
  flex: 1;
  min-height: 150px;
  max-width: 100%;
  padding: 0;
  border: none;
  outline: none;
  font-family: Aeonik;
  font-size: clamp(12px, 5vw, 24px);
  font-weight: 400;
  color: #1e1e1e;
  overflow: hidden;
  resize: none;
  position: relative;
  line-height: 1.2;
  background: transparent;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-input-area:empty::before {
  content: attr(data-placeholder);
  color: #999;
  font-family: Aeonik;
  font-size: 24px;
  pointer-events: none;
}

.chat-input-area.placeholder-text {
  color: #999;
}

.chat-input-area:focus {
  outline: none;
  box-shadow: none;
}

.welcome-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ea516c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 5px;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.message-content {
  flex: 1;
  padding-right: 35px;
}

.greeting {
  font-family: Aeonik;
  font-size: 24px;
  font-weight: 400;
  color: #1e1e1e;
  margin-bottom: 20px;
}

.chat-input-container {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
}

.chat-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.chat-icon-button:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.chat-icon-button:focus,
.chat-icon-button:active {
  outline: none;
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: none;
}

.chat-icon-button img,
.chat-icon-button svg {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(60%) contrast(100%);
}

.chat-icon-button svg {
  fill: #999;
  stroke: #999;
}

.buttons-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}

.sign-up-button {
  height: 35px;
  background: #ffffff;
  color: black;
  text-align: center;
  font-family: Aeonik;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 0px;
  text-decoration: none;
  border: 1px solid black;
  width: 125px;
  margin-left: 20px;
  margin-right: 20px;
  opacity: 0;
  pointer-events: none;
  background-position: 100% 0;
}

.sign-up-button.show {
  cursor: pointer;
  transition: background-position .5s, opacity 1s;
  opacity: 1;
  background-size: 200% 100%;
  background-image: linear-gradient(to right, #EA516C 50%, white 50%);
  background-position: 100% 0;
  pointer-events: auto;
}

.sign-up-button:hover {
  background-position: 0 0;
  color: #f8f0ea;
}

.talk-now-button {
  height: 35px;
  background: #1e1e1e;
  color: #f8f0ea;
  text-align: center;
  font-family: Aeonik;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  border: none;
  width: 125px;
  transition: background-position .5s, width .5s;
  background-size: 200% 100%;
  background-image: linear-gradient(to right, #EA516C 50%, #1E1E1E 50%);
  background-position: 100% 0;
}

.talk-now-button:hover {
  background-position: 0 0;
  color: #f8f0ea;
  text-decoration: none;
}

.signup-text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 0px;
  background: #f8f0ea;
  transition: height 0.5s ease, opacity 0.5s ease;
  position: relative;
  font-size: x-large;
  z-index: -1;
}

.signup-text-container.show {
  height: 100%;
  z-index: 1;
}

.signup-text {
  opacity: 0;
  transition:  opacity 0.5s ease;
}

.signup-text.show {
  opacity: 1;
  padding: 10px;
}

.subtitle-container {
  flex: 0 0 70px;
  display: flex;
  justify-items: center;
  align-items: center;
}

.subtitle {
  font-variant-numeric: tabular-nums;
}

.fft-canvas {
  pointer-events: none;
}

.call-visualizer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 0px;
  opacity: 0;
  background: #f8f0ea;
  transition: opacity 0.0s;
  position: relative;
  font-size: x-large;
  z-index: 1;
}

#agentNameVisualizer {
  position: absolute;
  left: 80%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-family: Aeonik;
  font-size: 16px;
  font-style: normal;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.8s ease;
}

#agentNameVisualizer.show {
  opacity: 1;
  z-index: 2;
}

.call-visualizer.show {
  transition: opacity 0.5s ease;
  opacity: 1;
  padding: 30px;
}

.tos-container{
  display: flex
;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0px;
  font-size: 12px;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Removed old input button and suggestion pill styles */

@media (max-width: 768px) {

  .chatbox-container {
    margin: 0 20px;
    border-radius: 12px;
  }

  .chatbox-header {
    padding: 12px 20px;
  }

  .model-dropdown-menu {
    min-width: 280px;
  }

  .chat-messages {
    padding: 20px;
  }

  .chat-input-container {
    padding: 15px 20px;
    flex-direction: column;
    gap: 20px;
  }

  .chat-input-area {
    font-size: 16px;
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .greeting {
    font-size: 20px;
  }

  .sign-up-button {
    flex: 1;
    margin-left: 0;
    margin-right: 20px;
    opacity: 0;
    z-index: -1;
  }

  .sign-up-button.show {
    opacity 1;
    z-index: 1;
    transition: opacity 0.2s ease;
  }

  .talk-now-button {
    flex: 1;
    width: auto;
    margin-right: 0;
    margin-left: 0;
  }

  .buttons-container {
    flex: 1;
    width: 100%;
    justify-content: space-around;
  }

  .sliding-content-area {
    height: 250px;
  }

  .call-visualizer.show {
    padding: 10px;
  }

  .avatar {
    width: 0%;
    height: 0%;
    flex: 0;
  }

  .message-content {
    padding-right: 0px;
  }

  .welcome-message {
    gap: 0px;
  }

  .subtitle-container {
    flex: 0 0 30px;
  }

  .subtitle {
    font-size: 15px;
  }
}
.share-button-container {
  position: relative;
  display: flex;
  align-items: center;
}

.copy-notification {
  position: absolute;
  left: calc(100% + 10px);
  background-color: #f0f0f0;
  color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  font-family: Aeonik;
  font-size: 14px;
}

.copy-notification.show {
  opacity: 1;
  visibility: visible;
}
