
.ai-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Inter, sans-serif;
}

/* Chat Button */
.chat-toggle {
  width: 100px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #07afb5, #b2037a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 22px;
  position: relative;
  overflow: hidden;

  /* Animations */
  animation: float 3s ease-in-out infinite,
             glow 2s ease-in-out infinite alternate;

  transition: transform 0.3s ease;
}

.chat-toggle p {
  font-size: 15px;
  margin: 0;
  z-index: 2;
}

.chat-toggle:hover {
  transform: scale(1.12);
}

/* Pulse Ring */
.chat-toggle::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.5);
  animation: pulse-ring 2s infinite;
}

/* Shine Effect */
.chat-toggle::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

/* Floating */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Glow */
@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(7,175,181,0.5),
                0 0 20px rgba(178,3,122,0.4);
  }
  to {
    box-shadow: 0 0 20px rgba(7,175,181,0.8),
                0 0 40px rgba(178,3,122,0.7);
  }
}

/* Pulse Ring */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Shine */
@keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  height: 440px;
  background: #0b1424;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.chat-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.06);
  color: white;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chat-body {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  color: #d6e2f5;
}

.chat-body::-webkit-scrollbar {
  width: 4px;
}

.chat-body::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.chat-body::-webkit-scrollbar-thumb {
  background: #6c5ce7;
  border-radius: 10px;
}

.bot-msg, .user-msg {
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 85%;
  animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-msg {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
}

.user-msg {
  background: linear-gradient(135deg, #6c5ce7, #5a4bd1);
  color: white;
  margin-left: auto;
}

/* TYPING INDICATOR */
.typing-indicator {
  display: none;
  padding: 8px 14px;
  gap: 4px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  margin: 4px 0;
  width: fit-content;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6c5ce7;
  display: inline-block;
  animation: typingBounce 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
  background: rgba(255,255,255,0.02);
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: white;
  outline: none;
  font-size: 13px;
}

.chat-input-area input::placeholder {
  color: rgba(255,255,255,0.3);
}

.chat-input-area button {
  width: 44px;
  background: linear-gradient(135deg, #00e5ff, #6c5ce7);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-input-area button:hover {
  transform: scale(1.05);
}

/* ===== CATEGORY DETAILS STYLES ===== */
.category-details {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 229, 255, 0.10));
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 16px 0;
  backdrop-filter: blur(10px);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-detail-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c5ce7, #00e5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
}

.category-detail-info {
  flex: 1;
}

.category-detail-info h3 {
  color: white;
  font-size: 20px;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.category-detail-info p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.category-detail-stats {
  display: flex;
  gap: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.category-detail-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-detail-stats i {
  color: #6c5ce7;
}

.category-detail-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.category-detail-close:hover {
  background: rgba(255,255,255,0.15);
}

/* Responsive */
@media (max-width: 600px) {
  .chat-window {
    width: 290px;
    height: 380px;
    right: -10px;
  }
  
  .category-detail-content {
    flex-wrap: wrap;
  }
  
  .category-detail-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .category-detail-info h3 {
    font-size: 17px;
  }
}
