.oiva-wrapper {
    max-width: 1100px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fdfdfd;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e2e2;
}

/* Two column side-by-side structure */
.oiva-main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Fixed/sticky left pane containing only the buttons */
.oiva-left-pane {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dfdfdf;
}

.oiva-left-pane h3 {
    margin-top: 0;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 12px;
}

.oiva-fixed-buttons {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Right pane housing inputs, status, and scrolling thread */
.oiva-right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.oiva-session-title-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.oiva-session-title-wrap input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.oiva-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    text-align: center;
}
.oiva-btn:hover {
    background: #135e96;
}
.oiva-btn-secondary {
    background: #646970;
}
.oiva-btn-secondary:hover {
    background: #3c434a;
}
.oiva-btn:disabled {
    background: #dcdcde;
    color: #a7aaad;
    cursor: not-allowed;
}
.oiva-status {
    font-size: 14px;
    font-style: italic;
    color: #50575e;
    margin-bottom: 15px;
    background: #f0f0f1;
    padding: 8px 12px;
    border-radius: 4px;
}
.oiva-output-container {
    margin-bottom: 15px;
}
.oiva-output-container h3 {
    margin-bottom: 6px;
    font-size: 14px;
    color: #1d2327;
}
.oiva-output-container textarea {
    width: 100%;
    height: 90px;
    padding: 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

/* Larger right-side space giving priority to recent responses */
.oiva-response-box {
    background: #fff;
    border: 1px solid #8c8f94;
    padding: 14px;
    border-radius: 4px;
    height: 480px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
    color: #2c3338;
}
.oiva-chat-bubble {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    line-height: 1.4;
}

/* Questions asked (User) - RED color profile */
.oiva-chat-user {
    background: #fdf2f2;
    border-left: 4px solid #d63638;
    color: #8a1f1d;
}

/* AI answers retrieved (Assistant) - BLUE color profile */
.oiva-chat-assistant {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    color: #1d2327;
}

/* Responsive fallback for smaller screens / mobile devices */
@media (max-width: 850px) {
    .oiva-main-layout {
        flex-direction: column;
    }
    .oiva-left-pane {
        flex: 1;
        width: 100%;
        position: relative;
        top: 0;
    }
    .oiva-response-box {
        height: 350px;
    }
}