* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #111827, #000);
  color: #fff;
  overflow: hidden;
}

/* PARTICLES */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* CHAT CARD */
.chat-container {
  max-width: 420px;
  margin: auto;
  margin-top: 25px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  padding: 15px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 90vh;
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.15);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

h2 {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* CHAT AREA */
#chatbox {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scroll-behavior: smooth;
}

/* SCROLLBAR */
#chatbox::-webkit-scrollbar {
  width: 4px;
}
#chatbox::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}

/* MESSAGE */
.message {
  margin: 8px 0;
  padding: 12px;
  border-radius: 14px;
  max-width: 85%;
  white-space: pre-line;
  animation: messagePop 0.3s ease forwards;
}

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

.user {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  align-self: flex-end;
}

.bot {
  background: linear-gradient(135deg, #374151, #1f2937);
  align-self: flex-start;
}

/* QUICK BUTTONS */
.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.quick-buttons button {
  flex: 1 1 30%;
  padding: 8px;
  border: none;
  border-radius: 20px;
  background: #111827;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-buttons button:hover {
  background: #22c55e;
  color: #000;
  transform: translateY(-2px);
}

.quick-buttons button:active {
  transform: scale(0.95);
}

/* INPUT */
.input-area {
  display: flex;
  gap: 6px;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: #111827;
  color: white;
  transition: box-shadow 0.3s;
}

input:focus {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

/* SEND BUTTON */
#sendBtn {
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#sendBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

#sendBtn:active {
  transform: scale(0.95);
}

/* MOBILE */
@media (max-width: 480px) {
  .chat-container {
    height: 95vh;
    margin-top: 10px;
  }
}
