/* BlueSky AI Chat Widget Styles */
@keyframes fdSlideInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.fd-chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fd-chat-header-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.fd-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: 12px;
}

.fd-avatar-inner {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid rgba(255,255,255,0.3);
}

.fd-status-indicator {
  color: #10b981;
  font-size: 8px;
  margin-right: 4px;
}

.fd-chat-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.fd-chat-subtitle {
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
  line-height: 1.2;
}

.fd-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fd-menu-container {
  position: relative;
}

.fd-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  line-height: 1;
}

.fd-menu-btn:hover {
  background: rgba(255,255,255,0.1);
}

.fd-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 120px;
  z-index: 1000;
}

.fd-menu-dropdown button {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background 0.2s;
}

.fd-menu-dropdown button:hover {
  background: #f3f4f6;
}

.fd-menu-dropdown button:first-child {
  border-radius: 8px 8px 0 0;
}

.fd-menu-dropdown button:last-child {
  border-radius: 0 0 8px 8px;
}

.fd-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

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

.fd-chat-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  [id^="fd-chat-widget-"] {
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 100px) !important;
    bottom: 12px !important;
    right: 12px !important;
    left: 12px !important;
    border-radius: 12px !important;
  }

  [id^="fd-float-btn-"] {
    bottom: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
  }

  .fd-chat-title {
    font-size: 14px !important;
  }

  .fd-chat-subtitle {
    font-size: 11px !important;
  }

  .fd-avatar-inner {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }

  .fd-avatar {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 480px) {
  [id^="fd-chat-widget-"] {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 80px) !important;
    bottom: 8px !important;
    right: 8px !important;
    left: 8px !important;
    border-radius: 8px !important;
  }

  [id^="fd-float-btn-"] {
    bottom: 16px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }

  .fd-chat-header {
    padding: 10px 12px !important;
    min-height: 48px !important;
  }

  .fd-chat-title {
    font-size: 13px !important;
  }

  .fd-chat-subtitle {
    font-size: 10px !important;
  }

  .fd-avatar-inner {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  .fd-avatar {
    width: 28px !important;
    height: 28px !important;
    margin-right: 8px !important;
  }
}