/* SBLS Enterprise Legal Operations Chatbot Styles */
#sbls-chatbot-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #d4af37 0%, #b38728 100%);
    box-shadow: 0 6px 24px rgba(10, 25, 49, 0.35), 0 0 15px rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    padding: 10px 18px 10px 14px;
    cursor: pointer;
    z-index: 999999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
}

#sbls-chatbot-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(10, 25, 49, 0.45), 0 0 22px rgba(212, 175, 55, 0.6);
}

.sbls-btn-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sbls-btn-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbls-btn-icon svg {
    width: 24px;
    height: 24px;
    fill: #0a1931;
}

.sbls-btn-label {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0a1931;
    white-space: nowrap;
}

.sbls-badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px #22c55e;
}

#sbls-chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: #0a1931;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: sblsPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sblsPopIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#sbls-chatbot-header {
    background: #040b16;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sbls-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sbls-bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #d4af37;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbls-bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbls-bot-title-wrap h4 {
    margin: 0;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
}

.sbls-bot-title-wrap span {
    font-size: 11px;
    color: #22c55e;
    display: block;
    margin-top: 1px;
}

#sbls-chatbot-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

#sbls-chatbot-close:hover {
    color: #ffffff;
}

#sbls-chatbot-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0a1931;
}

.sbls-msg {
    max-width: 86%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.sbls-msg-bot {
    align-self: flex-start;
    background: #102544;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 2px;
}

.sbls-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #d4af37 0%, #b38728 100%);
    color: #040b16;
    font-weight: 600;
    border-top-right-radius: 2px;
}

.sbls-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.sbls-quick-btn {
    background: #193763;
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #fbf6e3;
    border-radius: 16px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sbls-quick-btn:hover {
    background: #d4af37;
    color: #040b16;
    border-color: #d4af37;
}

.sbls-chat-cta {
    margin-top: 10px;
    padding: 10px;
    background: #040b16;
    border-left: 3px solid #d4af37;
    border-radius: 6px;
    font-size: 12.5px;
    color: #e2e8f0;
}

.sbls-chat-action-btn {
    display: inline-block;
    background: #d4af37;
    color: #040b16 !important;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.sbls-chat-wa-btn {
    display: inline-block;
    background: #25D366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
}

#sbls-chatbot-footer {
    padding: 12px 14px;
    background: #040b16;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    gap: 8px;
}

#sbls-chatbot-input {
    flex: 1;
    background: #102544;
    border: 1px solid #193763;
    color: #ffffff;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
}

#sbls-chatbot-input:focus {
    border-color: #d4af37;
}

#sbls-chatbot-send {
    background: #d4af37;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

#sbls-chatbot-send:hover {
    background: #e5c158;
}

#sbls-chatbot-send svg {
    width: 17px;
    height: 17px;
    fill: #0a1931;
}

@media (max-width: 480px) {
    #sbls-chatbot-window {
        bottom: 85px;
        right: 12px;
        left: 12px;
        width: auto;
        height: 75vh;
    }
    #sbls-chatbot-btn {
        bottom: 18px;
        right: 18px;
    }
}

