/* public/css/chat-widget.css */
#chat-launcher {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #6c47ff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(108,71,255,.35);
}
#chat-launcher i { color: #fff; font-size: 24px; }

#chat-box {
    position: fixed;
    bottom: 96px; right: 28px;
    width: 340px;
    background: #fff;
    border-radius: 16px;
    border: 0.5px solid #e5e5e5;
    display: flex; flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transition: opacity .2s, transform .2s;
    max-height: 519px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
#chat-box.chat-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

.chat-header {
    padding: 14px 16px;
    background: #6c47ff;
    display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
}
.chat-avatar i, .chat-title, .chat-status { color: #fff; }
.chat-title  { margin: 0; font-size: 14px; font-weight: 500; }
.chat-status { margin: 0; font-size: 11px; opacity: .75; }
.chat-close  { margin-left: auto; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.8); font-size: 20px; }

.chat-body {
    flex: 1; overflow-y: auto;
    padding: 14px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 260px; max-height: 320px;
}

.msg-bot  { display: flex; gap: 8px; align-items: flex-start; }
.msg-user { display: flex; justify-content: flex-end; }

.bot-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: #ede9fe; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bot-avatar i { color: #6c47ff; font-size: 12px; }

.bubble-bot  { background: #f3f4f6; border-radius: 0 10px 10px 10px; padding: 9px 12px; font-size: 13px; max-width: 82%; line-height: 1.5; }
.bubble-user { background: #6c47ff; color: #fff; border-radius: 10px 0 10px 10px; padding: 9px 12px; font-size: 13px; max-width: 82%; line-height: 1.5; }

.chat-footer {
    padding: 10px 12px;
    border-top: 0.5px solid #e5e5e5;
    display: flex; gap: 8px; align-items: center;
}
.chat-footer input {
    flex: 1; font-size: 13px;
    border-radius: 20px; padding: 8px 14px;
    border: 0.5px solid #e5e5e5; background: #f9f9f9; outline: none;
}
.chat-footer button {
    width: 34px; height: 34px; border-radius: 50%;
    background: #6c47ff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.chat-footer button i { color: #fff; font-size: 15px; }

/* Suggestions Styling */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border-top: 0.5px solid #e5e5e5;
    background: #fdfdfd;
}

.suggestion-btn {
    background: #fff;
    border: 1px solid #6c47ff;
    color: #6c47ff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: #6c47ff;
    color: #fff;
}