.scb-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.scb-chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3c2c95;  /* Changed to new theme color */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(60, 44, 149, 0.3); /* Updated shadow to match */
    transition: transform 0.3s ease;
}

.scb-chat-bubble:hover {
    transform: scale(1.1);
}

.scb-chat-bubble svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.scb-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(60, 44, 149, 0.2); /* Updated shadow to match */
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.scb-chat-window.open {
    display: flex;
}

.scb-chat-header {
    background: #3c2c95;  /* Changed to new theme color */
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scb-close-btn {
    cursor: pointer;
    font-size: 20px;
}

.scb-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
}

.scb-message {
    margin-bottom: 15px;
    max-width: 80%;
    clear: both;
}

.scb-user-message {
    float: right;
    background: #3c2c95;  /* Changed to new theme color */
    color: white;
    padding: 10px 15px;
    border-radius: 18px 18px 0 18px;
    word-wrap: break-word;
}

.scb-bot-message {
    float: left;
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 18px 18px 18px 0;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(60, 44, 149, 0.1); /* Updated shadow to match */
}

.scb-suggestions {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.scb-suggestions-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.scb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scb-chip {
    background: #e8e4ff;  /* Lightened version of #3c2c95 (with opacity) */
    color: #3c2c95;  /* Changed to new theme color */
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid #3c2c95;  /* Changed to new theme color */
}

.scb-chip:hover {
    background: #d4ccff;  /* Slightly darker on hover */
}

.scb-input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.scb-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    margin-right: 10px;
    transition: border-color 0.3s;
}

.scb-input-area input:focus {
    border-color: #3c2c95;  /* Changed to new theme color */
}

.scb-input-area button {
    background: #3c2c95;  /* Changed to new theme color */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.scb-input-area button:hover {
    background: #2a1f6b;  /* Darker version for hover */
}

.scb-typing-indicator {
    padding: 10px 15px;
    background: white;
    border-radius: 18px 18px 18px 0;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(60, 44, 149, 0.1); /* Updated shadow to match */
}

.scb-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3c2c95;  /* Changed to new theme color */
    margin: 0 2px;
    animation: scbTyping 1.4s infinite;
}

.scb-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scb-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scbTyping {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Scrollbar styling */
.scb-messages-area::-webkit-scrollbar {
    width: 6px;
}

.scb-messages-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scb-messages-area::-webkit-scrollbar-thumb {
    background: #3c2c95;  /* Changed to new theme color */
    border-radius: 3px;
}

.scb-messages-area::-webkit-scrollbar-thumb:hover {
    background: #2a1f6b;  /* Darker version for hover */
}