.confdn-chatbot {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1050;
}

.back-to-top-btn {
    bottom: 5.25rem !important;
}

.confdn-chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #0d6efd;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 6px 22px rgba(13, 110, 253, .35);
}

.confdn-chatbot-panel {
    width: min(360px, calc(100vw - 2rem));
    height: 520px;
    background: #fff;
    color: #0f172a;
    border-radius: .75rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .22);
    margin-bottom: .75rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

.confdn-chatbot-header {
    padding: .75rem;
    background: #0d6efd;
    color: #fff;
}

.confdn-chatbot-close-btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    background: #fff;
    box-shadow: 0 4px 14px rgba(13, 110, 253, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.confdn-chatbot-close-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(13, 110, 253, .45);
}

.confdn-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: #f8f9fa;
    color: #0f172a;
}

.confdn-chatbot-options {
    padding: .5rem .75rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.confdn-chatbot-lead {
    padding: .75rem;
    border-top: 1px solid #e9ecef;
}

.chat-bubble {
    max-width: 90%;
    padding: .55rem .75rem;
    border-radius: .75rem;
    font-size: .9rem;
}

.chat-bubble-bot {
    background: #e9ecef;
    color: #111827;
    align-self: flex-start;
}

.chat-bubble-user {
    background: #0d6efd;
    color: #fff;
    align-self: flex-end;
}

@media (prefers-color-scheme: dark) {
    .confdn-chatbot-panel {
        background: #0f172a;
        color: #e2e8f0;
        border-color: #334155;
        box-shadow: 0 14px 40px rgba(2, 6, 23, .65);
    }

    .confdn-chatbot-messages {
        background: #0b1220;
        color: #e2e8f0;
    }

    .confdn-chatbot-options .btn-outline-primary {
        color: #bfdbfe;
        border-color: #60a5fa;
        background: rgba(37, 99, 235, .12);
    }

    .confdn-chatbot-options .btn-outline-primary:hover,
    .confdn-chatbot-options .btn-outline-primary:focus {
        color: #eff6ff;
        border-color: #93c5fd;
        background: rgba(37, 99, 235, .32);
    }

    .confdn-chatbot-lead {
        border-top-color: #334155;
    }

    .chat-bubble-bot {
        background: #1e293b;
        color: #f1f5f9;
    }
}
