body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #080808;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  height: 100vh;
  flex-direction: column;
}

/* Auth forms */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 20px;
}

.auth-form {
  background-color: #11161d;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 400px;
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #555;
  background-color: #2c2c2c;
  color: #e0e0e0;
  transition: 0.2s;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Custom select */
.auth-form select {
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.icon-button .material-icons {
  font-size: 28px;
}

.auth-form p {
  color: #a0a0a0;
  text-align: center;
  margin-top: 10px;
}

.auth-form a {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #3b82f6;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.auth-form a:hover {
  text-decoration: underline;
}

.auth-form button {
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  background-color: #3b82f6;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.auth-form button:hover {
  background-color: #2563eb;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

@media (min-width: 1024px) {
  .auth-form {
    max-width: 600px;
  }
}

/* Header */
.header {
  background-color: #4642685e;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  height: 60px;
  z-index: 100;
}

.header h1 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
  text-align: center;
  flex: 1;
}

/* Chat area */
.chat-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-messages {
  flex: 1;
  padding: 40px;
  padding-bottom: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.conversation-table {
  width: 100%;
  border-collapse: collapse;
}

.conversation-table th,
.conversation-table td {
  text-align: left;
  padding: 12px 10px;
}

.conversation-table th:first-child,
.conversation-table td:first-child {
  width: 50%;
}

.conversation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button.small {
  padding: 4px;
}

.icon-button.small .material-icons {
  font-size: 22px;
}

.icon-button.danger {
  color: #f87171;
}

.chat-messages::-webkit-scrollbar,
#userMessage::-webkit-scrollbar {
  display: none;
}

.input-container {
  padding: 20px;
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 200;
  max-width: 980px;
  margin: 0 auto;
  width: 90%;
  justify-content: center;
}


#chatInputRow {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

#userMessage {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #555;
  background-color: #2c2c2c;
  color: #e0e0e0;
  font-size: 1rem;
  resize: none;
  overflow: hidden;
  max-height: 120px;
  line-height: 1.5;
  box-sizing: border-box;
}

#userMessage:focus {
  outline: none;
  border-color: #b4b4b4;
}

#sendButton {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3b82f6;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#sendButton:hover {
  background-color: #2563eb;
  transform: scale(1.05);
}

.message {
  max-width: 80%;
  padding: 15px 20px;
  border-radius: 12px;
  word-wrap: break-word;
  line-height: 1.5;
}

.user {
  background-color: #50498b;
  color: #f6f6f6;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.bot {
  background-color: #121314f0;
  color: #8c8c8c;
  align-self: flex-start;
  border-bottom-left-radius: 0;
  font-style: normal;
}

.dialogue {
  font-style: italic ;
  color: #f6f6f6;
}

.thought {
  font-style: italic;
  color: #6693f2;
}

/* Responsive */
@media (max-width: 768px) {
  .input-container {
    padding: 5px;
  }

  #chatInputRow {
    gap: 5px;
  }

  #sendButton {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .message {
    max-width: 90%;
  }

  .header {
    height: 50px;
    padding: 5px 10px;
  }

  .header h1 {
    font-size: 1rem;
  }
}
