﻿/* Main Container */
/*#appiContainer {
    width: 100%;
    height: 90vh;
    background: #ffffff;
    border-left: 1px solid #e0e0e0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
}*/
body.appi-open .main-panel {
    margin-right: 380px;
    transition: margin-right 0.3s ease;
}
#appiContainer {
    position: fixed;
    top: 70px; /* adjust if header height different */
    right: -380px; /* 👈 hidden outside screen */
    width: 380px;
    height: calc(100vh - 70px);
    background: #ffffff;
    border-left: 1px solid #e0e0e0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    transition: right 0.3s ease;
    z-index: 1050;
}

    /* When open */
    #appiContainer.open {
        right: 0;
    }
/*    #appiContainer.open {
        right: 0;
    }*/

/* Header Layout */
.appi-header {
    padding: 15px;
    /*    background: #1f2937;*/
    background: #4e5263;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Close Button */
.appi-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s ease;
}

    .appi-close:hover {
        color: #f87171;
    }
/* Messages Area */
.appi-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Common Message Style */
.message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Appi Message (Left) */
.appi-message {
    align-self: flex-start;
    background: #e5e7eb;
    color: #111;
    border-bottom-left-radius: 4px;
}

/* User Message (Right) */
.user-message {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Input Section */
.appi-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

    .appi-input input {
        flex: 1;
        padding: 8px 12px;
        border-radius: 20px;
        border: 1px solid #ccc;
        outline: none;
        font-size: 14px;
    }

    .appi-input button {
        margin-left: 8px;
        padding: 8px 16px;
        border: none;
        border-radius: 20px;
        background: #2563eb;
        color: white;
        cursor: pointer;
        transition: 0.2s ease;
    }

        .appi-input button:hover {
            background: #1e40af;
        }
#appiContainer {
    right: -380px;
    transition: right 0.3s ease;
}

    #appiContainer.open {
        right: 0;
    }
.appi-execution-time {
    font-size: 12px;
    color: #9ca3af;
    margin-right: 10px;
    font-style: italic;
}