/* OhMyChatBot Widget Styles */

#omcb-chat-widget {
    position: fixed;
    bottom: 20px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
}

#omcb-chat-widget.omcb-pos-left {
    flex-direction: row-reverse;
}

/* Chat Button Bubble */
#omcb-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#omcb-chat-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6);
}

.omcb-toggle-label {
    background: white;
    padding: 10px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    animation: omcb-slide-in 0.5s ease-out;
    cursor: pointer;
}

@keyframes omcb-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#omcb-chat-widget.omcb-pos-left .omcb-toggle-label {
    animation: omcb-slide-in-left 0.5s ease-out;
}

@keyframes omcb-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#omcb-chat-button svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Chat Window */
#omcb-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#omcb-chat-window.active {
    display: flex;
    animation: omcb-appear 0.3s ease-out;
}

@keyframes omcb-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.omcb-header {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.omcb-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.omcb-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.omcb-bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.omcb-bot-avatar.default svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.omcb-close-btn {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0.8;
}

.omcb-close-btn:hover {
    opacity: 1;
}

/* Messages Area */
.omcb-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.omcb-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.omcb-message.bot {
    align-self: flex-start;
    background: transparent;
    color: #333;
    padding: 0;
    display: flex;
    gap: 10px;
    box-shadow: none;
    max-width: 90%;
}

.omcb-msg-avatar {
    flex-shrink: 0;
}

.omcb-msg-avatar .omcb-bot-avatar {
    width: 28px;
    height: 28px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.omcb-msg-text {
    background: white;
    padding: 12px 16px;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.omcb-message.user {
    align-self: flex-end;
    background: #0072ff;
    color: white;
    padding: 12px 16px;
    border-radius: 15px;
    border-bottom-right-radius: 2px;
}

/* Typing Indicator */
.omcb-typing {
    display: none;
    align-self: flex-start;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    font-style: italic;
    color: #888;
    font-size: 12px;
}

/* Input Area */
.omcb-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.omcb-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.omcb-input-area input:focus {
    border-color: #0072ff;
}

.omcb-send-btn {
    background: #0072ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.omcb-send-btn:hover {
    background: #0056b3;
}

/* Lead Form */
.omcb-lead-form {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.omcb-lead-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}

.omcb-lead-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Calendly Button */
.omcb-calendly-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    margin-top: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    cursor: pointer;
}

.omcb-calendly-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
    text-decoration: none !important;
}