/* static/style.css */

/* ---------- Base ---------- */
body {
  background: #ffffff;
}

.marketplace-card {
  border-radius: 14px;
}

/* ---------- Navbar height consistency ---------- */
/* ------------------------------
   Navbar / Logo Fix
-------------------------------*/

.navbar {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  min-height: 55px;
}

.navbar-brand {
  padding: 0 !important;
  margin: 0;
}

.nav-logo {
  height: 50px;     /* adjust if you want slightly larger */
  width: auto;
  display: block;
}

/* Force navbar images not to stretch layout */
.navbar img {
  max-height: 50px;
  width: auto;
}

/* Ensure both pages have identical hero spacing */
.hero .container {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* ---------- Provider/API logos ---------- */
.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-box img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* ---------- Brand badge fallback ---------- */
.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}

/* ---------- Plan row ---------- */
.plan-row {
  padding: 12px 0;
  border-top: 1px dashed #e5e7eb;
}

.plan-row:first-child {
  border-top: none;
  padding-top: 0;
}

.plan-price {
  font-weight: 800;
  font-size: 1.05rem;
}

/* ---------- Chat UI ---------- */
.chat-scroll {
  overflow-y: auto;
  min-height: 0;
  padding: 16px;
  background: #f8fafc;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 90%;
  white-space: pre-wrap;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
}

.chat-user {
  margin-left: auto;
  background: #0d6efd;
  color: white;
  border-color: rgba(13,110,253,0.35);
}

.chat-bot {
  margin-right: auto;
  background: #ffffff;
  color: #111827;
}

.chat-welcome-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.chat-suggestions-wrap {
  margin-top: 8px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-input {
  resize: none;
}

/* ---------- Small tweaks ---------- */
.search-group {
  min-width: 260px;
}

.min-w-0 {
  min-width: 0;
}

/* =========================================================
   NEW: Floating chat button + smaller widget-style chat panel
   ========================================================= */

/* ---------- Floating chat button (FAB) ---------- */
.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #0d6efd;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  z-index: 1056;
  cursor: pointer;
}

.chat-fab:hover {
  filter: brightness(0.98);
}

.chat-fab:active {
  transform: translateY(1px);
}

/* ---------- Smaller offcanvas chat "window" ---------- */
.chat-offcanvas {
  width: 420px !important;
  max-width: calc(100vw - 24px);
  height: 70vh !important;
  max-height: calc(100vh - 110px);
  top: auto !important;
  bottom: 90px !important;
  right: 12px !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

/* keep the header/composer from looking cramped */
.chat-offcanvas .offcanvas-header {
  padding: 12px 14px;
}

.chat-offcanvas .offcanvas-body {
  padding: 0;
}

/* Mobile: wider + taller, still not full screen */
@media (max-width: 576px) {
  .chat-offcanvas {
    width: calc(100vw - 24px) !important;
    height: 78vh !important;
    right: 12px !important;
    bottom: 86px !important;
  }
}
/* ---------- Modern chat launch button ---------- */
.chat-launch {
  border-radius: 999px !important;
  padding: 0.45rem 0.85rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 10px 25px rgba(13,110,253,0.22);
  border: 1px solid rgba(13,110,253,0.20);
}

.chat-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(13,110,253,0.28);
}

.chat-launch:active {
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(13,110,253,0.22);
}

.chat-launch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Custom CloudMart blue */
.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-outline-primary {
  color: #2563eb;
  border-color: #2563eb;
}

.btn-outline-primary:hover {
  background-color: #2563eb;
  color: white;
}