/* Reset and base */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #121212; /* from your simple CSS */
  color: #eee;              /* from your simple CSS */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  /* removed linear gradient from chatbot.css body */
}

.app {
    position: relative;
  z-index: 1;
  width: 95vw;
  max-width: 1000px;
  height: 90vh;
  margin: auto;
  background-color: #343541;
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.app::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background-image: url('favicon.png'); /* your logo path */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.25;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  padding: 24px 80px;
  border-bottom: 1px solid #ff0000; /* bright red */
  text-align: center;
  font-weight: 700;
  font-size: 1.75rem;
  color: #fff;
  user-select: none;
}

/* Chat container */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: #343543;
}

/* Messages */
.message {
  display: inline-block;       /* width fits content */
  max-width: 80vw;             /* optional limit so very long text wraps */
  padding: 12px 20px;          /* nice padding inside bubble */
  border-radius: 22px;
  line-height: 1.4;
  font-size: 1.1rem;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}


.message.user {
  align-self: flex-end;
  background-color: #ff0000; /* bright red */
  color: white;
  border-bottom-right-radius: 8px;
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.8);
}

.message.wyuckie {
  align-self: flex-start;
  background-color: #4a0000; /* dark red */
  color: #ddd;
  border-bottom-left-radius: 8px;
}

/* Input area fixed at bottom */
.input-area {
  display: flex;
  align-items: center;
  padding: 20px 80px;
  background-color: #661a1a; /* deep red */
  border-top: 1px solid #b03030;
  gap: 18px;
}

.input-area input[type="text"] {
  flex-grow: 1;
  border: none;
  border-radius: 9999px;
  padding: 20px 32px;
  font-size: 1.15rem;
  outline: none;
  background-color: #330000; /* darker red */
  color: #e5e5e5;
  transition: background-color 0.2s ease;
  box-shadow: inset 0 0 6px rgba(255, 0, 0, 0.7);
}

.input-area input[type="text"]::placeholder {
  color: #ff6666;
}

.input-area input[type="text"]:focus {
  background-color: #440000;
}

/* Send button with icon */
.input-area button {
  border: none;
  border-radius: 9999px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  color: white;
  padding: 0;
}

.input-area button:hover {
  background-color: #f44;
}

.input-area button svg {
  stroke: white;
  width: 24px;
  height: 24px;
}

/* Scrollbar styling */
.chat-container::-webkit-scrollbar {
  width: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
  background-color: #f44;
  border-radius: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background-color: #330000;
}

.header h1 {
  display: inline-block;
  font-weight: 700;
  font-size: 2.5rem;
  color: #b0b0b0;
  background: #e44;

  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  cursor: pointer;
  text-shadow:
    0 0 6px rgba(255, 0, 0, 0),
    0 0 12px rgba(255, 0, 0, 0);
  transition: text-shadow 0.2s ease;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  color: #fff;
  background-color: #202123;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid #333;
  user-select: none;
}

.footer a {
  color: #cc4444;
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  color: #ff5555;
  text-decoration: underline;
}

/* --- From your simple index CSS --- */

/* Override body, h1, p with your simpler styles */
body {
  background: #121212;  /* darker black */
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  padding: 20px;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
}

h1 {
  font-size: 3rem;
  color: #e44; /* red */
  margin-bottom: 1rem;
  user-select: none;
}

p {
  max-width: 600px;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  color: #ccc;
}

/* New style for chatbot link to keep red theme consistent */
a.chatbot-link {
  background-color: #e44;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(228, 68, 68, 0.7);
  transition: background-color 0.3s ease;
  user-select: none;
  cursor: pointer;
}

a.chatbot-link:hover {
  background-color: #e44;
  box-shadow: 0 6px 18px rgba(195, 51, 51, 0.8);
}

.disclaimer {
  text-align: center;
  padding: 8px 0;
  font-size: 0.8rem;
  color: #fff;
  background-color: #1a1a1a;
  border-bottom: 1px solid #884444;
  font-family: 'Inter', sans-serif;
  user-select: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.disclaimer p {
  margin: 0;
}