/* General body styles */
body {
  margin: 0;
  background: #232220;
  color: #eee;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main container */
.main-container {
  width: 100%;
  max-width: 800px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header */
.header {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  color: #e6e1d9;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 32px 0 16px;
  text-align: center;
}

.header-icon {
  color: #007bff;
  font-size: 3.2rem;
}

.smart-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: #007bff;
  font-weight: 700;
}

.shiny {
  background: linear-gradient(45deg, #6bb0ff, #0049b7, #6bb0ff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2.5s linear infinite;
  background-size: 200% 100%;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Chat body */
.chat-body {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 0 0 140px; /* space for input row */
  scroll-behavior: smooth;
}

/* Messages */
.message {
  max-width: 85%;
  padding: 18px 22px;
  border-radius: 26px;
  line-height: 1.8;
  font-size: 20px;
  animation: fadeIn 0.3s ease-out;
}

.message.user {
  align-self: flex-end;
  background: #007bff;
  color: #fff;
}

.message.bot {
  align-self: flex-start;
  background: #282726;
  color: #eee;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Input row - fixed at bottom, centered */
.input-row {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
  background: #282726;
  box-sizing: border-box;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 100;
}

.input-row input {
  flex: 1;
  background: transparent;
  color: #eee;
  font-size: 1.8rem;
  border: none;
  outline: none;
  padding: 14px;
}

.input-row button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 20px 40px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.input-row button:hover {
  background: #0056b3;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  html, body {
    height: 100%;
  }
  body {
    min-height: 100vh;
  }
  .main-container {
    min-height: 100vh;
    max-width: 100%;
    padding: 16px !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }
  .chat-body {
    flex-grow: 1;
    min-height: 100vh;
    padding: 0 0 160px !important;
    overflow-y: auto;
  }
  .header {
    font-size: 3.8rem !important;
    margin-bottom: 20px !important;
  }
  .header-icon {
    font-size: 3.5rem !important;
  }
  .smart-subtitle {
    font-size: 2.2rem !important;
  }
  .message {
    font-size: 24px !important;
    padding: 20px 24px !important;
    border-radius: 28px !important;
  }
  .input-row {
    padding: 26px 32px !important;
    gap: 18px !important;
  }
  .input-row input {
    font-size: 2rem !important;
    padding: 16px !important;
  }
  .input-row button {
    padding: 22px 44px !important;
    font-size: 2rem !important;
  }
}