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

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f0f1a;
  color: #fff;
}
@keyframes fireEffect {
    0% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
}
.master {
  position: relative;
  color: transparent;
  background: linear-gradient(45deg, 
    #ff4d4d, 
    #ff9933, 
    #ffcc00, 
    #ff4d4d
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: fireEffect 5s ease infinite;
  display: inline-block;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
  padding: 0 4px;
}

.master::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(10px);
  opacity: 0.3;
  z-index: -1;
}

.chat-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: linear-gradient(135deg, #1a1b2e 0%, #0f0f1a 100%);
  scrollbar-width: thin;
  scrollbar-color: #4a4b65 #1a1b2e;
}

.chat-container::-webkit-scrollbar {
  width: 8px;
}

.chat-container::-webkit-scrollbar-track {
  background: #1a1b2e;
}

.chat-container::-webkit-scrollbar-thumb {
  background-color: #4a4b65;
  border-radius: 4px;
}

.message {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 1rem;
  max-width: 70%;
  position: relative;
  animation: messageSlide 0.3s ease-out;
}

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

.user-message {
  background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
  margin-left: auto;
  border-bottom-right-radius: 0.2rem;
  box-shadow: 0 4px 15px rgba(43, 88, 118, 0.2);
}

.bot-message {
  background: linear-gradient(135deg, #24243e 0%, #302b63 100%);
  border-bottom-left-radius: 0.2rem;
  box-shadow: 0 4px 15px rgba(48, 43, 99, 0.2);
}

.input-container {
  padding: 1.5rem;
  background: rgba(26, 27, 46, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper {
  display: flex;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.input-box {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  background: rgba(15, 15, 26, 0.6);
  color: #fff;
  font-size: 1rem;
  resize: none;
  height: 60px;
  transition: all 0.3s ease;
}

.input-box:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.15);
}

.send-button {
  padding: 0 2rem;
  background: linear-gradient(135deg, #4a9eff 0%, #2872e6 100%);
  color: white;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.send-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.send-button:hover::before {
  left: 100%;
}

.send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 158, 255, 0.4);
}

::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .message {
    max-width: 85%;
  }

  .input-container {
    padding: 1rem;
  }
}
