/* General Styles */
.container {
  text-align: center;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.con {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
}

.chat-container {
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0px 32px rgba(255, 30, 120, 0.5);
  border: 2px solid #ff4f58;
  max-width: 500px;
  width: 100%;
  animation: fadeIn 1s ease-in-out;
  background: transparent;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(255, 105, 180, 0.6);
}

.chat-box {
  text-align: left;
  height: 500px;
  overflow-y: auto;
  padding: 20px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid #ff4f58;
}

.message {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.message.user {
  background: #ff6b6b;
  color: #fff;
  margin-left: auto; /* Align user messages to the right */
  text-align: right;
}

.message.assistant {
  background: #f0f0f0;
  color: #000;
  margin-right: auto; /* Align assistant messages to the left */
  text-align: left;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  background: #ff6b6b;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.option:hover {
  background: #ff4c4c;
  transform: scale(1.02);
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ff4f58;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  margin-top: 10px;
}

button {
  background: #ff4c4c;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

button:hover {
  background: #ff6b6b;
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff5656;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .chat-container {
    padding: 20px;
  }
}

@media screen and (max-width: 768px) {
  .con {
    flex-direction: column;
  }
}

/* Loading Indicator */
.loading {
  text-align: center;
  font-size: 1.2rem;
  color: #000; /* Black text */
  margin-top: 10px;
  animation: pulse 1.5s infinite;
}

.loading.hidden {
  display: none;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* Markdown Text Styling */
.message.assistant p,
.message.assistant h1,
.message.assistant h2,
.message.assistant h3,
.message.assistant h4,
.message.assistant h5,
.message.assistant h6,
.message.assistant ul,
.message.assistant ol,
.message.assistant li,
.message.assistant blockquote,
.message.assistant code,
.message.assistant pre,
.message.assistant strong,
.message.assistant em {
  color: #000; /* Black color for all Markdown text */
}

/* Additional Markdown Styling */
.message.assistant code {
  background: #f0f0f0; /* Light gray background for code */
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.message.assistant pre {
  background: #f0f0f0; /* Light gray background for code blocks */
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

.message.assistant blockquote {
  border-left: 4px solid #ff6b6b; /* Pink border for blockquotes */
  padding-left: 1rem;
  margin: 1rem 0;
  color: #000; /* Black text for blockquotes */
}

.message.assistant ul,
.message.assistant ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.message.assistant li {
  margin-bottom: 0.5rem;
}
