/* MIRA AI Assistant Styles */

/* Chat Widget Container */
.mira-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Chat Trigger Button */
.mira-chat-trigger {
  background: linear-gradient(135deg, #2BB3B1 0%, #4B5DFF 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(43, 179, 177, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mira-chat-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(43, 179, 177, 0.4);
}

.mira-chat-trigger.minimized {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
}

/* Chat Window */
.mira-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(43, 179, 177, 0.1);
}

.mira-chat-window.visible {
  display: flex;
}

/* Chat Header */
.mira-chat-header {
  background: linear-gradient(135deg, #2BB3B1 0%, #4B5DFF 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mira-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.mira-header-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.mira-header-info p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.mira-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.mira-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Chat Messages */
.mira-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mira-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.mira-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.mira-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.mira-message-avatar.bot {
  background: linear-gradient(135deg, #2BB3B1 0%, #4B5DFF 100%);
  color: white;
}

.mira-message-avatar.user {
  background: #F3F4F6;
  color: #6B7280;
}

.mira-message-content {
  background: #F9FAFB;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #E5E7EB;
}

.mira-message.user .mira-message-content {
  background: #2BB3B1;
  color: white;
  border-color: #2BB3B1;
}

/* Quick Actions */
.mira-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mira-quick-action {
  background: white;
  border: 2px solid #2BB3B1;
  color: #2BB3B1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.mira-quick-action:hover {
  background: #2BB3B1;
  color: white;
}

/* Chat Input */
.mira-chat-input {
  padding: 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  gap: 12px;
  align-items: center;
}

.mira-input-field {
  flex: 1;
  border: 2px solid #E5E7EB;
  border-radius: 25px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.mira-input-field:focus {
  border-color: #2BB3B1;
}

.mira-send-btn {
  background: #2BB3B1;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mira-send-btn:hover {
  background: #259B99;
}

.mira-send-btn:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
}

/* Typing Indicator */
.mira-typing {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 16px;
  margin-bottom: 16px;
}

.mira-typing-dots {
  display: flex;
  gap: 4px;
}

.mira-typing-dot {
  width: 8px;
  height: 8px;
  background: #9CA3AF;
  border-radius: 50%;
  animation: mira-typing-bounce 1.4s infinite ease-in-out;
}

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

@keyframes mira-typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .mira-chat-widget {
    bottom: 90px; /* Account for mobile sticky CTA */
  }
  
  .mira-chat-window {
    width: calc(100vw - 20px);
    height: 70vh;
    right: 10px;
  }
}

/* Status Indicator */
.mira-status-indicator {
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  right: -2px;
  animation: mira-pulse 2s infinite;
}

@keyframes mira-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}