body, html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f2f2f2;
  height: 100%;
  width: 100%;
}

.prompt-form-flex,
.prompt-form-container,
.prompt-form-outer {
  display: unset !important;
  height: unset !important;
  min-height: unset !important;
  position: unset !important;
  flex-direction: unset !important;
  gap: unset !important;
}

textarea#promptText.form-control {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  resize: vertical !important;
  height: 100% !important;
  max-height: 100% !important;
}

@media (max-width: 600px) {
  textarea#promptText.form-control {
    min-height: 150px !important;
  }
}

.chat-container {
  width: 100%;
  height: 100%;
  margin: unset;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #fbfbfb;
}

.chat-message {
  display: flex;
  flex-direction: column;
}

  .chat-message.user {
    align-items: flex-end;
  }

  .chat-message.ai {
    align-items: flex-start;
  }

.message-content {
  max-width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #333;
}

.chat-message.user .message-content {
  background: #288CF3;
  color: white;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 1rem;
  background-color: white;
}

.chat-textarea {
  flex: 1;
  resize: none;
  border: none;
  padding: 10px;
  font-size: 1rem;
  height: auto;
  background-color: #ffffff;
}

.btn-submit {
  background: #288CF3;
  color: white;
  border: none;
  border-radius: 50%;
  height: 3rem;
  width: 3rem;
  line-height: 2rem;
  font-weight: bold;
  font-size: 1.25rem;
  cursor: pointer;
  margin-top: 2rem;
  bottom: 0;
}

  .btn-submit:hover {
    background: #7c7c7c;
  }

.admin-mail-table {
  table-layout: auto;
  width: 100%;
}

  .admin-mail-table th:first-child,
  .admin-mail-table td:first-child {
    width: 100%;
  }

  .admin-mail-table th:last-child,
  .admin-mail-table td.actions-col {
    white-space: nowrap;
    width: 1%;
    text-align: center;
    vertical-align: middle;
  }

  .nav-link{
    cursor: pointer;
  }

.prompt-form-container {
  display: flex;
  flex-direction: column;
  height: 60vh;
  min-height: 300px;
}

  .prompt-form-container textarea {
    flex: 1 1 auto;
    min-height: 0;
    resize: vertical;
  }

.prompt-form-outer {
  position: relative;
  height: 60vh;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.prompt-form-outer textarea {
  flex: 1 1 0;
  min-height: 0;
  resize: vertical;
}

.prompt-form-outer .position-absolute {
  z-index: 2;
  background: rgba(255,255,255,0.9);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.prompt-form-flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-textarea {
  height: 10rem;
  min-height: 5rem;
}

.prompt-save-btn {
  align-self: flex-start;
}

.prompt-error-msg,
.prompt-success-msg {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.prompt-error-msg {
  color: #e74c3c;
}

.prompt-success-msg {
  color: #2ecc71;
}

.typing-indicator {
  display: inline-block;
  width: 1.5em;
  text-align: left;
}
.typing-indicator span {
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-right: 0.1em;
  background: #888;
  border-radius: 50%;
  opacity: 0.5;
  animation: blink 1.4s infinite both;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.5; }
  40% { opacity: 1; }
}

