/* static/ai-chat.css — shared chat widget styles, used by every trip-scoped page */

.ai-chat-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: white; width: 32px; height: 32px; border-radius: 8px; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
.ai-chat-btn:hover { background: rgba(255,255,255,0.24); }

#ai-panel { position: fixed; top: 64px; right: 16px; z-index: 2001; width: 340px; max-width: calc(100vw - 32px); max-height: 70vh; background: white; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.22); display: none; flex-direction: column; overflow: hidden; transition: width 0.2s ease, height 0.2s ease; }
#ai-panel.open { display: flex; }
#ai-panel.expanded { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: min(720px, calc(100vw - 48px)); height: min(640px, calc(100vh - 48px)); max-height: none; }
#ai-panel-header { background: #1a2f4a; color: white; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; flex-shrink: 0; }
#ai-header-actions { display: flex; align-items: center; gap: 4px; }
#ai-expand, #ai-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px; }
#ai-expand { font-size: 15px; }
#ai-expand:hover, #ai-close:hover { color: white; }
#ai-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.ai-msg { padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; max-width: 90%; }
.ai-msg.user { background: #1a2f4a; color: white; align-self: flex-end; border-bottom-right-radius: 3px; }
.ai-msg.bot { background: #f1f5f9; color: #1e293b; align-self: flex-start; border-bottom-left-radius: 3px; }
.ai-msg.bot.thinking { color: #94a3b8; font-style: italic; }
#ai-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
#ai-input { flex: 1; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; }
#ai-input:focus { border-color: #1a2f4a; }
#ai-send { background: #1a2f4a; color: white; border: none; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
#ai-send:disabled { opacity: 0.5; pointer-events: none; }
