/* General Body Styling */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #343541;
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Chat Application Container */
.chat-app {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Chat Container */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Chat Header */
.chat-header {
  background-color: #202123;
  padding: 10px 20px;
  text-align: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
}

/* Chat Main Area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Chat Window with Scroll */
.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #2d2f36;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: #565869 #343541;
}

/* Scrollbar Styling for WebKit */
.chat-window::-webkit-scrollbar {
  width: 8px;
}

.chat-window::-webkit-scrollbar-thumb {
  background: #565869;
  border-radius: 4px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
  background: #737682;
}

.chat-window::-webkit-scrollbar-track {
  background: #343541;
}

/* Individual Messages */
.message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  line-height: 1.5;
  max-width: 70%;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.user {
  background-color: #1a73e8;
  color: #ffffff;
  align-self: flex-end;
}

.gpt {
  background-color: #3e3f4b;
  color: #ffffff;
  align-self: flex-start;
}

/* Input Section */
.input-section {
  display: flex;
  align-items: center;
  background-color: #40414f;
  padding: 12px;
  border-top: 1px solid #565869;
  border-radius: 12px;
  margin: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Starting Position - Centered Input Box */
.input-section.starting {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  background-color: #40414f;
  border: 1px solid #565869;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Input Box Styling */
textarea {
  flex: 1;
  border: none;
  background-color: #565869;
  color: #ffffff;
  padding: 12px 15px;
  border-radius: 24px;
  font-size: 16px;
  resize: none;
  outline: none;
  max-height: 100px;
  transition: background 0.3s ease;
}

textarea:focus {
  background-color: #6b6d7b;
}

textarea::placeholder {
  color: #9ca3af;
}

/* Send Button Styling */
button {
  background-color: #1a73e8;
  border: none;
  color: #ffffff;
  cursor: pointer;
  margin-left: 10px;
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background-color: #1669d4;
  transform: scale(1.1);
}

button:active {
  transform: scale(1);
}
