﻿/*** Overall container *****/


.ai_response_area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow:hidden;
    padding-bottom:16px;
}

.ai_response_area_rails {
    display:flex;
    flex-direction:row;
    gap:16px;
}

.left_rail {
    flex: 0 0 75%; /* 75% width, don't grow or shrink */
    overflow: hidden;
}

.right_rail {
    flex: 1; /* Takes remaining ~34% */
    overflow:hidden;
}

@media(max-width: 1024px) {
    .left_rail {
        flex: 0 0 66%; /* 66% width, don't grow or shrink */
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .ai_response_area_rails {
        flex-direction: column; /* Stacked on small screens */
    }

    .left_rail,
    .right_rail {
        flex: 0 0 100%; /* Full width when stacked */
        width: 100%; /* Belt and suspenders */
    }
}


/*** Sections ****/
.title_and_summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}



.sections_container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.section_card {
    display: flex;
    gap: 16px;
    background-color: #ededed;
    border-radius: 8px;
    align-items: flex-start;
    padding: 8px;
    align-items: center;
}

.section_card_image_container {
    width: 33%;
    padding: 4px;
}

.section_card_text_container {
    width: 100%;
    padding: 4px;
    background-color: white;
}



.section_code {
    border: solid #ededed 1px;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
}

.section_reference {
    font-style: italic;
    font-size: small;
}




.section_bullet_list {
    list-style: disc;
    padding-left: 40px;
    margin-top: 16px;
    margin-bottom: 16px;
}



.section_numbered_list {
    list-style: decimal;
    padding-left: 40px;
    margin-top: 16px;
    margin-bottom: 16px;
}


/*** Handling the show more/less clamp ****/


.clamp-container {
    position: relative;
}

.clamp-content {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.clamp-fade {
    position: absolute;
    bottom: 32px; /* Height of the show more bar */
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.clamp-toggle {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    font-size: 13px;
    color: #555;
    user-select: none;
}

    .clamp-toggle:hover {
        background: #ebebeb;
        color: #222;
    }

/*** Handles the bottom section for more questions, feedback, etc.*/

.more_info_box {
    width: 100%;
    padding: 4px;
    margin-top: 16px;
}

.prompt_box {
    margin-bottom: 8px;
}

.feedback_area {
    margin-top: 8px;
    margin-bottom: 4px;
}

#RAG_feedback_prompt_box {
    display: flex;
    gap: 16px;
}


/*** Handles right rail basics.*/

.RAG_RelatedHeader {
    font-weight:bold;
}

.RAG_Related_Container {
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:8px;
}

.RAG_Related_Container_Grouping {
    display:flex; 
    gap:8px;
    flex-wrap:wrap;
    width:100%;
}