/* Aria Chat Widget Styles */
#aria-chat-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0F1B35;
  border: 2px solid #C9A84C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
}

#aria-chat-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

#aria-chat-button svg {
  width: 28px;
  height: 28px;
  fill: white;
}

#aria-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #0F1B35;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  font-family: 'Inter', system-ui, sans-serif;
}

#aria-chat-panel.open {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

#aria-chat-header {
  background: #1a2847;
  padding: 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#aria-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C 0%, #d4b85f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

#aria-avatar span {
  color: #0F1B35;
  font-size: 18px;
  font-weight: 700;
}

#aria-header-text {
  flex: 1;
}

#aria-header-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

#aria-header-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9CA3AF;
}

#aria-close-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

#aria-close-btn:hover {
  color: white;
}

#aria-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aria-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.aria-message.user {
  background: #2B4680;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.aria-message.assistant {
  background: #1a2847;
  color: #E5E7EB;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.aria-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #1a2847;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.aria-typing span {
  width: 8px;
  height: 8px;
  background: #C9A84C;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.aria-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.aria-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

#aria-chat-input {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  background: #1a2847;
}

#aria-message-input {
  flex: 1;
  background: #0F1B35;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

#aria-message-input::placeholder {
  color: #6B7280;
}

#aria-message-input:focus {
  border-color: #C9A84C;
}

#aria-send-btn {
  background: #C9A84C;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#aria-send-btn:hover {
  background: #d4b85f;
}

#aria-send-btn:disabled {
  background: #4B5563;
  cursor: not-allowed;
}

#aria-send-btn svg {
  width: 20px;
  height: 20px;
  fill: #0F1B35;
}

/* Mobile responsive */
@media (max-width: 480px) {
  #aria-chat-panel {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 90px;
    height: 60vh;
    max-height: 500px;
  }
  
  #aria-chat-button {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
}

/* Scrollbar styling */
#aria-chat-messages::-webkit-scrollbar {
  width: 6px;
}

#aria-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

#aria-chat-messages::-webkit-scrollbar-thumb {
  background: #2B4680;
  border-radius: 3px;
}

#aria-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #3B5998;
}
