#spiffbot-chatbot-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: 'Arial', sans-serif;
}

.spiffbot-chat-window {
    background: #1c1c1e;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.spiffbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #1c1c1e;
    scrollbar-width: thin;
    scrollbar-color: #333 #1c1c1e;
}

.spiffbot-messages::-webkit-scrollbar {
    width: 8px;
    background: #1c1c1e;
    border-radius: 8px;
}

.spiffbot-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 8px;
    border: 2px solid #1c1c1e;
}

.spiffbot-messages::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.spiffbot-message {
    max-width: 75%;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 1rem;
    word-break: break-word;
    line-height: 1.4;
    margin-bottom: 2px;
    display: inline-block;
}

.spiffbot-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0a84ff 0%, #0051a8 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.spiffbot-message.bot {
    align-self: flex-start;
    background: #2c2c2e;
    color: #fff;
    border-bottom-left-radius: 4px;
}

div#spiffbot-thinking-container {
    display: flex;
    margin: 10px 0;
    align-content: center;
    align-items: center;
}

.spiffbot-thinking .dot {
    height: 6px;
    width: 6px;
    background: grey;
    border-radius: 6px;
    display: inline-block;
    margin-right: 5px;
    animation: dot-cycle 0.7s infinite;
    position: relative;
    top: 0;
    transition: top 0.1s ease;
}

.spiffbot-thinking .dot:nth-child(1) {
    animation-delay: 0s;
}

.spiffbot-thinking .dot:nth-child(2) {
    animation-delay: 0.233s;
}

.spiffbot-thinking .dot:nth-child(3) {
    animation-delay: 0.466s;
}

@keyframes dot-cycle {
    0%, 33% {
        height: 6px;
        width: 6px;
        top: 0;
    }
    16% {
        height: 7px;
        width: 7px;
        top: -0.5px;
    }
}

.spiffbot-thinking.bot {
    align-self: flex-start;
    background: #2c2c2e;
    color: #fff;
    border-bottom-left-radius: 4px;
    margin-left: 20px;
    padding: 0 15px;
    border-radius: 5px 5px 5px 0;
}

.spiffbot-input-row {
    display: flex;
    background: #222226;
    padding: 12px;
    border-top: 1px solid #333;
}

.spiffbot-input-row input[type="text"] {
    flex: 1;
    background: #2c2c2e;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 1rem;
    outline: none;
    margin-right: 8px;
}

.spiffbot-input-row button {
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.spiffbot-input-row button:hover {
    background: #0051a8;
}

.spiffbot-float-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.2s;
}
.spiffbot-float-btn:hover {
    background: #0051a8;
}

.spiffbot-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}
.spiffbot-modal-content {
    background: #222226;
    color: #fff;
    margin: 10% auto;
    padding: 32px 24px 24px 24px;
    border-radius: 16px;
    width: 320px;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.spiffbot-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}
.spiffbot-modal-close:hover {
    color: #fff;
}
.spiffbot-generate-btn {
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}
.spiffbot-generate-btn:hover {
    background: #0051a8;
}

.spiffbot-test-box {
    position: fixed;
    right: 40px;
    bottom: 560px; /* 500px chat height + 40px margin + 20px gap */
    z-index: 10001;
    background: #23232b;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    padding: 18px 24px 18px 24px;
    min-width: 220px;
    text-align: center;
    border: 1px solid #333;
    opacity: 0.97;
}
.spiffbot-test-header {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: #0a84ff;
}

.spiffbot-float-btn,
.spiffbot-modal,
.spiffbot-modal-content,
.spiffbot-modal-close {
    display: none !important;
}
