/* Aiolo Chatbot — Front-End Widget Styles
   -------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&display=swap');

:root {
  --aiolo-color: #0A7AFF;
  --aiolo-radius: 18px;
}

/* Base typography (Outfit everywhere) */
#aiolo-panel, #aiolo-panel *, #aiolo-bubble {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }

/* Container / bubble ------------------------------------------------------- */
#aiolo-bubble {
  position: fixed; right: 18px; bottom: 18px; z-index: 2147483646;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--aiolo-color); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18); cursor: pointer;
}
#aiolo-bubble img { width: 28px; height: 28px; border-radius:50%; object-fit:cover; }

#aiolo-panel {
  position: fixed; right: 18px; bottom: 86px; z-index: 2147483646;
  width: min(360px, 92vw);
  border-radius: var(--aiolo-radius);
  background: #fff; border:1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  display: none; overflow: hidden;
}

/* Header (brand bar) ------------------------------------------------------- */
#aiolo-header {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  background: var(--aiolo-color);
  color:#fff;
}
#aiolo-header .logo { width:26px; height:26px; object-fit:cover; }

/* Title (header greeting) — 16/400 */
#aiolo-header .aiolo-greeting {
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Quick chips -------------------------------------------------------------- */
#aiolo-quick {
  display:flex; gap:6px; flex-wrap:wrap;
  padding: 8px 12px; border-bottom:1px solid #eef2f7; background:#fff;
}
/* Chip text — 14/400 */
#aiolo-quick .chip {
  font-size: 14px !important;
  font-weight: 400;
  padding:6px 8px; border-radius:999px;
  border:1px solid #e5e7eb; background:#fff; cursor:pointer;
}

/* Messages ----------------------------------------------------------------- */
#aiolo-messages {
  height: calc(520px - 46px - 70px);
  padding: 10px 12px; overflow:auto; background:#f8fafc;
}
.aiolo-msg {
  max-width: 80%;
  margin: 6px 0; padding: 10px 12px; border-radius: 25px;
  }
.aiolo-msg.user { background:#dbeafe; margin-left:auto; border-bottom-right-radius: 6px; }
.aiolo-msg.bot  { background:#fff; border:1px solid #e5e7eb; border-bottom-left-radius: 6px; }
/* Chat bubble text — 14/400 (inherits base) */
.aiolo-msg .aiolo-msg-text {
    font-size: 14px !important; font-weight: 400; line-height: 1.3;
}

/* Input row ---------------------------------------------------------------- */
#aiolo-input {
  padding:10px; background:#fff; display:flex; gap:8px;
}
#aiolo-input input {
  flex:1; border:1px solid #e5e7eb; border-radius: 25px; padding:10px;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.3;
  }
/* Input placeholder — 12/400 */
#aiolo-input input::placeholder {
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.3;
  opacity: .7;
}
#aiolo-input button {
  width:42px; height:42px; min-width:42px;
  display:flex; align-items:center; justify-content:center;
  background: var(--aiolo-color); color:#fff;
  border:none; border-radius:999px; cursor:pointer;
}
#aiolo-input button svg { width:22px; height:22px; display:block; }

/* Source badges & links ---------------------------------------------------- */
.aiolo-msg.bot .aiolo-meta {
  margin-top: 6px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  opacity: 0.85;
  /* meta text — 12/400 */
  font-size: 10px !important; font-weight: 400; line-height: 1.3;
}

.aiolo-source-badge {
  display: inline-block;
  padding: 2px 6px; border-radius: 999px;
  background: #e5e7eb; color: #111827;
  font-size: 10px !important; font-weight: 400; line-height: 1;
}

/* Optional color accents per source */
.aiolo-source-kb       { background: #dbeafe; color: #1e3a8a; }
.aiolo-source-preset   { background: #dcfce7; color: #065f46; }
.aiolo-source-ai       { background: #fef3c7; color: #92400e; }
.aiolo-source-fallback { background: #f3f4f6; color: #374151; }

.aiolo-source-links { display: inline-flex; align-items: center; gap: 6px; }
.aiolo-source-label { font-weight: 400; margin-right: 2px; }
.aiolo-source-links a { text-decoration: underline; word-break: break-all; }


