/* Floating Bot Icon Style (Strictly Positioned on the Left) */
#ai-bot-btn {
    position: fixed !important;
    bottom: 25px !important;
    left: 0px !important;
    right: 0 !important;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0088cc, #0055ff);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    z-index: 99999 !important;
    transition: transform 0.2s ease;
}

#ai-bot-btn:hover {
    transform: scale(1.1);
}

/* Chat Box Window (Opens directly above the left bot icon) */
#ai-chat-box {
    display: none;
    position: fixed !important;
    bottom: 90px !important;
    left: 20px !important;
    right: auto !important;
    width: 320px;
    max-width: 85vw;
    height: 420px;
    background: #121826;
    border: 1px solid #2a3447;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
    z-index: 999999 !important;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.chat-header {
    background: #1a233a;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a3447;
}

.close-btn {
    background: none;
    border: none;
    color: #888888;
    font-size: 16px;
    cursor: pointer;
}

.close-btn:hover {
    color: #ffffff;
}

.chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg {
    background: #1e293b;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 13px;
    align-self: flex-start;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-msg {
    background: #0088cc;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 13px;
    align-self: flex-end;
    line-height: 1.4;
    word-break: break-word;
}

.chat-footer {
    display: flex;
    padding: 8px;
    background: #1a233a;
    border-top: 1px solid #2a3447;
}

.chat-footer input {
    flex: 1;
    background: #0d1117;
    border: 1px solid #2a3447;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.chat-footer button {
    background: #0088cc;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    margin-left: 6px;
    border-radius: 6px;
    cursor: pointer;
}
