/*
  Sentinel Secure Services
  chatbot.css
  - Floating FAQ Assistant widget styles
*/

:root {
  --chat-bg: rgba(10, 15, 26, 0.92);
  --chat-surface: rgba(255, 255, 255, 0.06);
  --chat-border: rgba(255, 255, 255, 0.12);
}

.chatbot-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #08101c;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.chatbot-launcher:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.chatbot-launcher .icon {
  width: 18px;
  height: 18px;
}

.chatbot-panel {
  position: fixed;
  right: 18px;
  bottom: 74px;
  width: min(420px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 120px));
  z-index: 151;
  display: none;
  grid-template-rows: auto 1fr auto;
  border-radius: 16px;
  border: 1px solid var(--chat-border);
  background: var(--chat-bg);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.chatbot-panel.open {
  display: grid;
}

.chatbot-head {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chatbot-title {
  display: grid;
  gap: 2px;
}

.chatbot-title strong {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.chatbot-title span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.chatbot-actions {
  display: flex;
  gap: 8px;
}

.chatbot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.chatbot-btn:hover {
  background: rgba(255, 255, 255, 0.10);
}

.chatbot-body {
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.chatbot-msg {
  max-width: 92%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

.chatbot-msg.user {
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.chatbot-msg.bot {
  margin-right: auto;
}

.chatbot-meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.suggestion:hover {
  background: rgba(255, 255, 255, 0.10);
}

.chatbot-foot {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  gap: 10px;
}

.chatbot-inputrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chatbot-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.chatbot-input:focus {
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(93, 214, 255, 0.36);
}

.chatbot-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 560px) {
  .chatbot-launcher {
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .chatbot-panel {
    right: 14px;
    bottom: 70px;
  }
}