:root {
  --primary: #d4a373;
  --source: #d4a373;
  --bg-dark: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background: radial-gradient(circle at top left, #2c3e50, #000);
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.chat-container {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  margin-bottom: 50px;

}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}

.chat-header h1 {
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.chat-header p {
  font-size: 0.8rem;
  opacity: 0.6;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.message {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 2px;
}

.message.user {
  align-self: flex-end;
  background: var(--primary);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.chat-input {
  padding: 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 15px;
  color: #fff;
  outline: none;
  transition: 0.3s;
}

input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

button {
  background: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.source-tag {
  font-size: 0.7rem;
  color: var(--source);
  opacity: 0.5;
  margin-top: 5px;
  display: block;
  text-align: right;
}

.typing {
  font-style: italic;
  opacity: 0.6;
  font-size: 0.8rem;
}

.thought-time {
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}