
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  height: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.chat-container {
  width: 100%;
  max-width: 800px;
  height: 100vh;
  background: white;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem;
  background: #007FFF;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.chat-header i {
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.chat-header h2 {
  font-size: 1.2rem;
}

.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  color: rgb(6, 6, 6);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease-out;
  backdrop-filter: blur(5px);
}

.user-message {
  background: rgba(34, 38, 233, 0.1);
  border: 1px solid rgba(47, 23, 231, 0.15);
  align-self: flex-end;
}

.bot-message {
  background: rgba(75, 73, 238, 0.15);
  border: 1px solid rgba(22, 25, 227, 0.2);
  align-self: flex-start;
}

.input-container {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 0.5rem;
  position: sticky;
  bottom: 0;

}

input {
  flex: 1;
  padding: 0.8rem;
  border:1px solid rgb(62, 155, 237);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgb(19, 18, 18);
  font-size: 0.9rem;
  min-height: 40px;

}

button {
  padding: 0.8rem 1rem;
  min-width: 50px;
  border: none;
  border-radius: 12px;
  background: #3457D5;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

button i {
  font-size: 1rem;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .chat-container {
    border-radius: 0;
    height: 100vh;
  }

  .chat-header {
    padding: 0.8rem;
    min-height: 50px;
  }

  .chat-header h2 {
    font-size: 1.1rem;
  }

  .chat-header i {
    font-size: 1.3rem;
  }

  .chat-body {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .message {
    max-width: 90%;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .input-container {
    padding: 0.8rem;
    gap: 0.5rem;
  }

  input {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  button {
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 375px) {
  .chat-header h2 {
    font-size: 1rem;
  }

  .message {
    font-size: 0.8rem;
  }

  input {
    font-size: 0.8rem;
  }
}

/* Existing animations and scrollbar styles */
@keyframes slideIn {
  /* ... */
}
@keyframes float {
  /* ... */
}
::-webkit-scrollbar {
  /* ... */
}
