.chat-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.chat-window {
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  width: 40vw;
  max-width: 40vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.toggle-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  margin-right: 0.5rem;
  position: relative;
}

.toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.toggle-btn.solving-mode {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.toggle-btn.designing-mode {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.switch-text {
  font-size: 0.75rem;
  opacity: 0.8;
}

.messages {
  position: relative;
  flex: 1;
  min-height: 300px;
  max-height: 850px;
  overflow-y: auto;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  color: white;
  scroll-behavior: smooth;
}

.background-gif {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.user {
  text-align: right;
  color: lightblue;
}

.assistant {
  text-align: left;
  color: lightgreen;
}

.assistant .code-block {
  margin: 0.75rem 0;
  background: #2d2d2d;
  border-radius: 8px;
  border-left: 4px solid #4facfe;
  overflow-x: auto;
}

.assistant .code-block pre {
  margin: 0;
  padding: 1rem;
}

.assistant .code-block pre code {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.6;
  color: #a9dc76;
  display: block;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 1rem;
  font-size: 0.75em;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-suggestions button {
  background-color: #fff;
  color: black;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.prompt-suggestions button:hover {
  background-color: #eee;
}

.input-row {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  padding: 0.25rem;
  gap: 0;
}

.input-row textarea {
  flex: 1;
  padding: 0.75rem;
  font-size: 14px;
  outline: none;
  border: none;
  background: transparent;
  resize: none;
  min-height: 20px;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.4;
}

.input-row .send-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 18px;
  cursor: pointer;
}

.input-row .send-btn .send-icon {
  font-size: 20px;
}

.unselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

* {
  font-family: "Quicksand";
  /* firefox scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

/* width */

::-webkit-scrollbar {
  width: 10px;
}

/* Track */

::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  z-index: 50000;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

button:focus {
  outline: 0;
}

.headlineText {
  font-size: 2.3em !important;
  font-weight: 500;
  letter-spacing: 2px;
}

.descriptionText {
  font-size: 1.8em !important;
  color: #a59f96;
  opacity: 0.8;
}

