#chatpilot-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #06b6d4;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1000;
  font-size: 26px;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(10px);
}

#chatpilot-bubble:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.5);
  border-color: rgba(6, 182, 212, 0.6);
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #0f172a;
}

#chatpilot-bubble:active {
  transform: scale(0.95);
}

#chatpilot-panel {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 380px;
  max-height: 600px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 0;
  display: none;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideInDark 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#chatpilot-panel.open {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #06b6d4;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(6, 182, 212, 0.1) 50%, transparent 70%);
  animation: shimmerDark 3s infinite;
}

@keyframes shimmerDark {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.assistant-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.close-button {
  background: rgba(6, 182, 212, 0.2);
  border: none;
  color: #06b6d4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.close-button:hover {
  background: rgba(6, 182, 212, 0.3);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  max-height: 400px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  scroll-behavior: smooth;
}

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

.chat-messages::-webkit-scrollbar-track {
  background: rgba(6, 182, 212, 0.1);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.5);
}

.chat-input-container {
  padding: 20px 24px;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  gap: 12px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
}

#chat-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#chat-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.95);
}

#chat-input::placeholder {
  color: #64748b;
  font-style: italic;
}

#send-button {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #0f172a;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  min-width: 60px;
}

#send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

#send-button:active {
  transform: translateY(0);
}

#send-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: messageSlideInDark 0.3s ease;
  position: relative;
}

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

.message strong {
  color: #06b6d4;
  margin-right: 8px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  animation: typingDark 1.4s infinite ease-in-out;
  box-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDark {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
} 