/* public/assets/css/style.css */

/* Chat Widget Container */
.jenny-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Floating Toggle Button */
.jenny-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.jenny-toggle-btn:hover {
    transform: scale(1.1);
}

/* Chat Box (Glassmorphism) */
.jenny-chat-box {
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: bottom right;
}

.jenny-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* Header */
.jenny-header {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Message Area */
.jenny-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Message Bubbles */
.jenny-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jenny-msg-bot {
    background: rgba(255, 255, 255, 0.5);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: #333;
}

.jenny-msg-user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    color: white;
}

/* Input Area */
.jenny-input-area {
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    gap: 10px;
}

.jenny-input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.jenny-send-btn {
    background: #764ba2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .jenny-chat-box {
        position: fixed !important;
        /* Break out of relative container */
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        /* Full Viewport Width */
        height: 100vh !important;
        /* Full Viewport Height */
        border-radius: 0 !important;
        margin: 0 !important;
        bottom: auto !important;
        right: auto !important;
        background: #fff;
        /* Solid background for legibility */
        display: flex;
        flex-direction: column;
    }

    .jenny-messages {
        flex: 1;
        font-size: 16px;
    }

    .jenny-input-area {
        padding: 15px;
        background: #f0f0f0;
    }

    .jenny-input {
        font-size: 16px;
        /* Prevent zoom */
    }

    /* Move the toggle button out of the way or hide it when open */
    .jenny-toggle-btn {
        z-index: 10000;
        /* Keep accessible if needed, or hide */
    }
}