/* General Chat Box Styles */
.solotutes-chat-header {
    display: flex;
    align-items: center;
    background: #0073aa;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    justify-content: space-between;
}
.solotutes-chat-header img {
    max-width: 35px;
    border-radius: 50%;
    margin-right: 10px;
}
.solotutes-header-left {
    display: flex;
    align-items: center;
}
.solotutes-chat-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}
.solotutes-chat-box {
    height: 400px;
    overflow-y: auto;
    background: #fafafa;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
.solotutes-input-wrapper {
    display: flex;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
}
.solotutes-input-wrapper input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}
.solotutes-input-wrapper button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.solotutes-input-wrapper button:hover {
    background: #005177;
}

/* Message Styles */
.solotutes-message {
    padding: 10px 15px;
    border-radius: 5px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
}
.solotutes-user-msg {
    background: #e1f5fe;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    color: #000;
}
.solotutes-ai-msg {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 0;
    color: #333;
}

/* In-Page Layout specific */
.solotutes-page-layout {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Floating Action Button (Popup trigger) */
.solotutes-ai-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    z-index: 9999;
    transition: transform 0.2s;
}
.solotutes-ai-fab:hover {
    transform: scale(1.05);
}

/* Popup Container */
.solotutes-popup-layout {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 10000;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .solotutes-popup-layout {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    .solotutes-chat-box {
        flex: 1;
        height: auto;
    }
    .solotutes-chat-header, .solotutes-input-wrapper {
        border-radius: 0;
    }
    .solotutes-ai-fab {
        bottom: 20px;
        right: 20px;
    }
}
#solotutes-ai-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
