
.add-question-container {
    display: flex;
    justify-content: flex-start;
}

.modal-content-box {
    background-color: var(--bgcolor);
    color: var(--txtcolor);
    border: 1px solid var(--bordercolor);
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.question-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-group-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid #444; /* Divider between items */
    background-color: #444; /* Slightly dark background for items */
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .question-group-item:hover {
        background-color: #555; /* Highlight on hover */
    }

/* Checkbox and label alignment */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between checkbox and text */
    width: 100%;
    cursor: pointer;
}

    .checkbox-label input[type="checkbox"] {
        flex-shrink: 0; /* Prevent shrinking of the checkbox */
        width: 20px;
        height: 20px;
        cursor: pointer;
        padding-left: 10px; /* Add padding to the left of the checkbox */
        margin-left: 10px; /* Add additional space to the left */
    }

    .checkbox-label span {
        flex-grow: 1; /* Ensure the text expands to fill available space */
        color: white;
        font-size: 1rem;
    }


.chat-disclaimer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--bordercolor);
    text-align: center;
    font-size: 0.9em;
    color: var(--txtcolor);
    opacity: 0.8; /* Slightly faded to de-emphasize */
}


/* Thinking message styling */
.thinking-message {
    background-color: #444;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
}


/* Modal container */
.chat-modal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure proper spacing between sections */
    background-color: var(--bgcolor);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--txtcolor);
    height: 100%; /* Ensure it fills the available height */
    width: 100%; /* Responsive to container size */
    max-width: 800px; /* Prevent it from being too wide */
    max-height: 600px; /* Prevent it from being too tall */
    overflow: hidden; /* Avoid content overflow */
    position: relative; /* Positioning for the close button */
}

/* Close button */
.chart-close-btn {
    font-size: 1.5em;
    cursor: pointer;
    color: var(--txtcolor);
    position: absolute;
    top: 10px;
    right: 20px;
}
/* Chat messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    background-color: #333;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    max-width: 750px; /* Prevent it from being too wide */
    max-height: 550px; /* Prevent it from being too tall */
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.3);
}

/* Chat bubble styling */
.chat-bubble {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 90%;
    word-wrap: break-word;
}

/* Moe's response */
.moe-response {
    background-color: #444;
    color: white;
    align-self: flex-start;
}

/* User input area */
.chat-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User input box */
.chat-input {
    flex: 1;
    background-color: var(--bgcolor);
    color: var(--txtcolor);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--bordercolor);
}

/* Send button */
.chat-send-button {
    background-color: green;
    color: white;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
}

    .chat-send-button:hover {
        background-color: darkgreen;
    }
/* Container for each group */
.group-wrapper {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid var(--bordercolor);
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    overflow: hidden;
}

    .group-wrapper:nth-child(odd) {
        background-color: #2a2a2a; /* Slightly darker background */
    }

    .group-wrapper:nth-child(even) {
        background-color: #202020; /* A darker shade for better contrast */
    }



/* Group Header styling */
.group-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bordercolor);
}

.group-header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--csblue-light);
}

/* Questions Section inside each group */
.questions-section {
    margin-left: 20px; /* Indentation for questions */
}

/* Individual Question styling */
.question-container {
    background-color: #444; /* Dark background to separate from group container */
    border: 1px solid var(--bordercolor);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

/* Optionally, adjust question header and actions */
.question-header {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.question-actions {
    margin-bottom: 10px;
}


.chart-description,
.responses-section {
    margin-left: 10px;
    color: white; /* Ensures white text for nested content */
}

.response-list li {
    color: white; /* Ensures white text for response items */
}



.selected-file {
    text-align: center;
    font-size: 1.5em; /* Adjust font size as needed */
    font-weight: bold;
    margin: 10px 0;
}


/* Container for both sections */
.uploaded-files-container {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

/* General styling for each section */
.file-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 2px solid var(--bordercolor);
    border-radius: 8px;
    padding: 15px;
    background-color: var(--bgcolor);
    width: 250px;
}

/* Label styling */
.section-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--csblue);
}

/* Styling for individual file items */
.data-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.merged-file-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}


/******************************Custom Scrollbar Webkit************************/
/* width */
::-webkit-scrollbar {
    width: 8px;
    cursor: pointer;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--bordercolor);
    border-radius: 5px;
    cursor: pointer;
}

/******************************************************************************/


/* Right sidebar fixed to the right */
.right-sidebar {
    position: fixed;
    top: 65px; /* Start below the top menu */
    right: 0;
    width: 15%;
    height: calc(100vh - 65px);
    padding: 20px;
    background-color: var(--bgcolor, #f8f8f8);
    color: var(--txtcolor, #333);
    border-left: 2px solid #535353;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
}

    /* Optional adjustments for sidebar text and links */
    .right-sidebar h3 {
        color: var(--txtcolor, #333); /* Same as text color */
        margin-bottom: 10px;
    }

    .right-sidebar p, .right-sidebar a {
        color: var(--txtcolor, #333);
        text-decoration: none;
    }

        .right-sidebar a:hover {
            text-decoration: underline; /* Hover effect for links */
        }



/* Pill container style */
.section-pill {
    display: flex;
    align-items: center; /* Vertically centers content */
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 50px;
    margin: 10px 0;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.75);
    font-size: 0.75em;
    text-align: center;
    color: #ffffff;
}

    /* Ensure the text takes up remaining space and is vertically centered */
.section-label {
    flex: 1;
    position: relative;
    display: inline-block;
    color: inherit;
    text-align: center;
    line-height: 0.8;
}

/* Completed pill: Dark green gradient with white text */
.section-pill.completed {
    background: linear-gradient(90deg, #006400, #008000);
    color: #ffffff;
}

/* Progress pill: Dark yellow gradient with white text */
.section-pill.inprogress {
    background: linear-gradient(90deg, #F9A825, #F57F17);
    color: #ffffff;
}


/* Incomplete pill: Dark red gradient with white text */
.section-pill.incomplete {
    background: linear-gradient(90deg, #5e0000, #800000);
    color: #ffffff;
}

.pill-wrapper {
    position: relative; /* Establishes positioning context */
    margin-bottom: 40px; /* Extra space for the overlaid button */
}

/* Progress Container (the track) */
.progress-container {
    width: 100%;
    height: 10px; /* Height of the progress bar track */
    background-color: #e0e0e0; /* Light gray background */
    border-radius: 5px;
    margin-top: 5px; /* Space between the pill and the progress bar */
}
/* Progress Bar (the filled portion) */
.progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

/* Colors for different states */
.progress-completed {
    background: linear-gradient(90deg, #006400, #008000);
}

.progress-inprogress {
    background: linear-gradient(90deg, #F9A825, #F57F17);
}

.progress-incomplete {
    background: linear-gradient(90deg, #5e0000, #800000);
}

.pill-edit-button {
    position: absolute;
    bottom: -32px; /* Adjust as needed */
    right: -10px; /* Adjust as needed */
    z-index: 10;
    font-size: 0.8em; /* Adjust relative size */
    background-color: #9C27B0; /* Purple/lavender */
    border-radius: 20px; /* More rounded corners */
    padding: 4px 8px; /* Less vertical space */
    line-height: 1;
    border: none;
    color: #fff;
    transition: background-color 0.3s ease;
}

    .pill-edit-button:hover {
        background-color: #7B1FA2; /* Darker purple on hover */
    }

    .pill-edit-button:disabled {
        background-color: #B0BEC5; /* Gray background for disabled */
        cursor: not-allowed;
        color: #ECEFF1;
    }





/* Toggle Switch CSS */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: default; /* Not clickable */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

    /* The circle inside the slider */
    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

/* When the input is checked, change slider background */
.switch input:checked + .slider {
    background-color: #2196F3;
}

    /* Move the slider circle when checked */
    .switch input:checked + .slider:before {
        transform: translateX(26px);
    }

/* Rounded slider styling */
.slider.round {
    border-radius: 24px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* New Analysis button styled like a pill */
.new-analysis-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
    color: #ffffff;
    font-size: 0.75em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 5px; /* Adjust spacing as needed */
    margin-bottom: 10px;
}

    .new-analysis-button:hover {
        background: linear-gradient(90deg, #7B1FA2, #6A0DAD);
    }

.analysis-edit-button {
    display: block;
    padding: 6px 12px;
    border-radius: 50px;
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
    color: #ffffff;
    font-size: 0.75em;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 4px 0;
    transition: background-color 0.3s ease;
}

    .analysis-edit-button:hover {
        background: linear-gradient(90deg, #7B1FA2, #6A0DAD);
    }


.conclusion-container {
    max-width: 800px; /* Sets the maximum width */
    margin: 0 auto; /* Centers the container */
    padding: 20px; /* Padding for spacing */
    border-radius: 8px; /* Slightly rounded edges */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A modern, clean font */
    background-color: white; /* Ensure background is white */
    color: black; /* Text color */
}

    .conclusion-container pre {
        max-width: 100%; /* Adjusted for responsiveness */
        white-space: pre-wrap;
        word-wrap: break-word;
        margin: 0 auto;
        padding: 10px;
        border-radius: 4px;
        overflow-x: auto;
        page-break-inside: avoid; /* Prevent page break inside pre elements */
        font-family: inherit; /* Inherit the container's font */
    }



.shape {
    width: 100px;
    height: 75px;
    margin: 10px;
    color: #fff;
    background-color: #CBA15D;
    position: relative;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1; /* Ensure .shape is above the ::before element */
}

    .shape::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 35%;
        height: 25px;
        background-color: #CBA15D;
        transform: translateY(-175%);
        border-radius: 10px;
        z-index: -1; /* Places ::before behind .shape */
    }

    .shape.selected-file {
        border: 6px solid var(--csblue-light);
        color: #fff;
        box-shadow: 5px 5px 10px #222;
    }



    .shape:hover {
        cursor: pointer; /* Ensures hand cursor on hover */
    }

:root {
    --bgcolor: #2C2C2C;
    --bordercolor: #535353;
    --txtcolor: #C0C0C0;
    --cspurple: #6C4B9D;
    --csblue: #326492;
    --csblue-light: hsl(204, 70%, 60%);
}

.close-btn {
    position: absolute;
    top: 10px; /* Adjust distance from the top */
    right: 12px; /* Adjust distance from the right */
    cursor: pointer; /* Indicate that it's clickable */
    font-size: 20px; /* Adjust size as needed */
}

.remove-data-btn {
    position: absolute;
    width: 15px;
    height: 15px;
    padding: 0;
    top: 5px; /* Adjust distance from the top */
    right: 5px; /* Adjust distance from the right */
    cursor: pointer;
    font-size: 10px; /* Adjust size as needed */
    border-radius: 15px;
}

body {
    background-color: var(--bgcolor);
    color: var(--txtcolor);
    display: flex;
}

.btn-container {
    display: flex;
    justify-content: right;
}

.btn-container-draftDocuments {
    display: flex;
    justify-content: center;
    gap: 8px; /* Adjust the gap as needed */
    margin-bottom: 20px;
}


/* Fixed Top Menu */
.top-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px; /* Adjust as needed */
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9998 !important;
}

/* Left, Middle, Right sections */
.top-menu-left,
.top-menu-middle,
.top-menu-right {
    display: flex;
    align-items: center;
}
/* Left side: fixed minimum width */
.top-menu-left {
    flex: 0 0 auto;
    min-width: 400px; /* Adjust as needed */
    position: relative; /* Required for the dropdown positioning */
}

/* Right side: fixed minimum width */
.top-menu-right {
    flex: 0 0 auto;
    min-width: 150px; /* Adjust as needed */
    text-align: right;
}

/* Middle section: absolutely positioned to always be centered */
.top-menu-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    white-space: nowrap; /* Prevent unwanted wrapping */
}


.share-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 5px; /* Small gap between the title and the button */
}

    .share-btn img {
        width: 32px; /* Ensure the share icon is small */
        height: auto;
    }

/* Projects dropdown styling remains the same */
.projects-dropdown {
    position: absolute;
    top: 100%; /* Directly below the Projects button */
    left: 0; /* Align with left edge of .top-menu-left */
    background-color: #444;
    padding: 10px;
    border: 1px solid #555;
    z-index: 10000;
    border-radius: 15px;
}

    /* Style the dropdown list if needed */
    .projects-dropdown ul {
        font-size: 12px;
        list-style: disc;
        margin: 0, 0, 0, 0;
        padding: 10px,0,0,0;
    }

    .projects-dropdown a {
        color: #fff; /* Normal state */
        text-decoration: none;
    }

        .projects-dropdown a:visited {
            color: #fff; /* Visited state */
        }

        .projects-dropdown a:hover {
            color: #ddd; /* Hover state */
        }


    .projects-dropdown li {
        margin-bottom: 5px;
    }
    z
        .projects-dropdown li a {
            color: #fff;
            text-decoration: none;
        }

/* User info spacing */
.user-info {
    margin-right: 10px;
}

.share-modal {
    /* Your existing modal styling */
    max-width: 600px;
    margin: auto;
    z-index: 10000;
    min-width: 800px;
}

.share-lists {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.share-list {
    width: 45%;
    border: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
    border-radius: 10px;
}

    .share-list h4 {
        margin-top: 0;
    }

    .share-list ul {
        list-style: none;
        padding: 0;
    }

.instructions {
    font-size: 0.8em; /* Smaller text */
    color: #666; /* A muted gray */
    margin-top: 10px;
    text-align: center;
}


.user-item {
    padding: 5px;
    cursor: pointer;
   
}

    .user-item:hover {
        color: #444;
        background-color: #eee;
        border-radius: 8px;
    }

.saving-popup {
    position: fixed;
    top: 50px;
    right: -300px; /* Initially offscreen */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 15000;
    transition: right 0.5s ease-in-out;
    background-color: black;
    font-size: 12px;
}

    .saving-popup.active {
        right: 20px; /* Slide into view */
    }

/* Optionally, animate the saving icon (e.g., a rotation) */
.saving-icon {
    width: 32px; /* Or your desired size */
    height: auto;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Content container: push content down so it's not hidden by the fixed header */
.content-container {
    margin-top: 65px; /* Should be at least the height of your top menu (60px) plus some spacing */
    background-color: #333;
}



/* Optional: adjust the logout button styling */
.logout-btn {
    color: #ffffff;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
}



.banner {
    display: flex;
    border-bottom: 1px solid #ccc; /* Separates tabs from content */
    background-color: #333; /* Or any background that fits your design */
    margin: 0, 0, 0, 15px;
}

/* Base tab styling */
.tab {
    background-color: #444; /* Inactive tab color: dark grey */
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #444;
    border-bottom: none; /* Remove bottom border so it appears connected */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 2px; /* A small gap between tabs */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    /* Hover state */
    .tab:hover {
        background-color: #555;
    }

    /* Active tab styling */
    .tab.active {
        background-color: #ccc; /* Active tab color: light grey */
        color: #333;
        border-color: #ccc;
        font-weight: bold;
    }


/* Left sidebar (nav-menu) fixed to the left */
.nav-menu {
    position: fixed;
    top: 65px; /* Start just below the top menu */
    left: 0;
    width: 20%;
    height: calc(100vh - 65px);
    background-color: var(--bgcolor, #f8f8f8);
    padding: 20px;
    overflow-y: auto;
    /* Force text to wrap */
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    border-right: 2px solid #535353;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 2000;
}


    .nav-menu li {
        list-style: none;
    }

    .nav-menu a {
        text-decoration: none;
        color: var(--txtcolor);
    }

    .nav-menu label::before {
        content: "\25B6";
        margin-right: 5px;
        font-size: 10px;
    }

.menu-header input[type="checkbox"]:checked + label::before {
    content: "\25BC";
    font-size: 10px;
}

.menu-header input[type="checkbox"] {
    display: none;
}

.menu-header label {
    cursor: pointer; /* Indicate that it's clickable */
}

.sub-menu {
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
}

.menu-header input[type="checkbox"]:checked + label + .sub-menu {
}

.menu-link {
    display: flex;
    align-items: center;
    color: inherit; /* Keep original text color */
    text-decoration: none; /* Remove underline */
}

.selected-icon {
    color: #1e90ff; /* Blue or a highlight color for active item */
    margin-right: 8px; /* Space between icon and text */
    font-size: 0.75em;
}

.inactive-icon {
    color: #8b0000; /* Dark red for non-active items */
    margin-right: 8px;
    font-size: 0.75em;
}

.menu-link.active {
    font-weight: bold; /* Highlight the active item’s text */
}




.sub-menu-item {
    margin-left: 20px;
}

    .sub-menu-item.active-item {
        background-color: #e0e0e0; /* Light gray for the selected item */
        font-weight: bold; /* Make the text bold */
    }

    .sub-menu-item .active-link {
        color: #1e90ff; /* Blue or another highlight color for the active link */
        text-decoration: underline; /* Optional: underline to highlight */
    }



/* Main content area in the center */
.main-content {
    margin-top: 15px; /* Enough top margin for the fixed header */
    margin-left: 20%; /* Leaves space for the nav-menu */
    margin-right: 15%; /* Leaves space for the right-sidebar */
    background-color: #333;
    height: 100%;
}

.view-content {
    margin-top: 15px; /* Enough top margin for the fixed header */
    margin-left: 15px; /* Leaves space for the nav-menu */
    margin-right: 15px; /* Leaves space for the right-sidebar */

}

    .main-content.blurred {
        filter: blur(5px); /* Adjust blur intensity as needed */
        pointer-events: none; /* Prevent interaction with the blurred content */
    }

.data-file-area {
    border-radius: 15px;
    background-color: var(--bgcolor);
    border: 3px solid var(--bordercolor);
    padding: 18px;
    box-shadow: 5px 5px 5px #111111;
}

.scaled {
    transform: scale(1.0);
}

@media only screen and (max-width: 1000px), (max-height: 775px) {
    .scaled {
        transform: scale(0.7);
    }
}


/* Modal overlay for the intro form */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 9999;
}

/* Modal content container with responsive sizing */
.edit-modal-content {
    background-color: var(--bgcolor);
    border: 2px solid #535353;
    border-radius: 15px;
    padding: 20px;
    width: clamp(300px, 90vw, 800px); /* Will be 90vw on small screens, up to 800px */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
}

/* Close button positioned top-right */
.edit-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.citations-display {
    width: 100%;
    height: 300px; /* Adjust as needed */
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Enable scrolling if content is long */
    background-color: white; /* Change as needed */
    color: black; /* Change as needed */
}


/* Style for the textarea */
.edit-modal-content textarea {
    width: 100%;
    height: 300px; /* Adjust as needed */
    resize: none;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Button container using flex for responsive layout */
.edit-btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Style for the input inside the modal */
.edit-modal-content .edit-input {
    flex: 1 1 200px; /* Grows and shrinks with a minimum width */
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Standard button styling */
.edit-modal-content .edit-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
}

    .edit-modal-content .edit-btn:disabled {
        background-color: #999;
        cursor: not-allowed;
    }

/* Disclaimer text styling */
.edit-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bgcolor);
    border: 2px solid #535353;
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    box-shadow: 10px 10px 5px black;
}

.modal-content-analysis {
    background-color: var(--bgcolor);
    border: 2px solid #535353;
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    box-shadow: 2px 2px 3px black;
}

.modal input, .modal textarea {
    background-color: var(--bgcolor);
    color: var(--txtcolor);
    border-radius: 20px;
    padding: 5px 8px;
}

.modal textarea {
    resize: none; /* Prevents resizing */
    width: 100%; /* Full width within the modal */
}

.modal select {
    background-color: var(--bgcolor);
    color: var(--txtcolor);
}

.modal label {
    margin-top: 10px;
}

.modal button {
    margin: 5px;
    border-radius: 5px;
    width: fit-content;
    padding: 5px;
}

#modal-save-btn {
    background-color: #6C4B9D;
    color: var(--txtcolor);
    padding: 5px 20px;
}

#modal-cancel-btn {
    background-color: var(--bgcolor);
    color: var(--txtcolor);
}

.modal-continue-btn {
    background-color: var(--cspurple);
    color: var(--txtcolor);
    padding: 5px;
}

.modal-save-btn {
    background-color: var(--csblue);
    color: var(--txtcolor);
    padding: 5px;
}

.question-group-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

    .question-group-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
    }

.chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Adds dark overlay */
    z-index: 9999; /* Ensures it appears above other content */
}

.chart-modal-content {
    background-color: var(--bgcolor);
    border: 2px solid #535353;
    padding: 10px;
    border-radius: 15px;

    max-width: 1000px; /* Maintain your current max width */
    max-height: 775px; /* Maintain your current max height */
    text-align: center;
    box-shadow: 10px 10px 5px black;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* For close button positioning */
}


.chart-modal input {
    background-color: var(--bgcolor);
    color: var(--txtcolor);
    border-radius: 20px;
    padding: 5px 8px;
}

.chart-title-input {
    background-color: var(--bgcolor);
    color: var(--txtcolor);
    border-radius: 20px;
    padding: 5px 8px;
    margin-bottom: 15px; /* Space between input and iframe */
}

.chart-title-label {
    margin-top: 10px;
    margin-bottom: 5px; /* Space below label */
}

.chart-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff; /* Close button color */
}

.copy-button-small {
    font-size: 0.8em;
    padding: 3px 8px;
    background-color: #535353;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

    .copy-button-small:hover {
        background-color: #737373;
    }


/******************************************* Custom Checkboxes for file selector popup ****************************************/

/* It is possible to do this with a radio button if we don't like the checkmark */

.select-file-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .select-file-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
}

.select-file-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.select-file-container input:checked ~ .checkmark {
    background-color: var(--cspurple);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.select-file-container input:checked ~ .checkmark:after {
    display: block;
}

.select-file-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/******************************************************************************************************************************/

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50000; /* High z-index to overlay everything */
}

.processing-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
}



.login-container {
    max-width: 300px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    background-color: #2C2C2C;
}

    .login-container input {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 4px;

    }

    .login-container button {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
        background-color: #4CAF50; /* Green background */
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .login-container button:hover {
            background-color: #45a049; /* Darker green */
        }

    .login-container .form-floating > label {
        color: #535353 !important;
    }




.drag-drop-container {
    margin-bottom: 20px;
    width: 300px; /* Set the fixed width here */
}

.drop-zone {
    border: 5px dashed var(--bordercolor);
    box-shadow: 5px 5px 5px #111111;
    width: 160px;
    height: 160px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

    .drop-zone.dragover {
        background-color: #f0f8ff;
        border-color: #1e90ff;
    }

    .drop-zone p {
        margin: 0;
        font-size: 16px;
    }

    .drop-zone .file-name {
        position: absolute;
        bottom: 5px;
        right: 10px;
        font-size: 14px;
        color: #333;
    }

.solid-border {
    border-style: solid !important;
}

/* Container for scrollable table */
.table-container {
    max-width: 1000px;
    max-height: 600px; /* Set a height for scrollable area */
    overflow-y: auto; /* Enable vertical scrolling */
    border: 1px solid #ddd;
}

/* Table styling remains the same */
.data-table {
    width: 500px;
    border-collapse: collapse;
}

    .data-table th, .data-table td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    .data-table th {
        background-color: #f2f2f2;
        text-align: center;
    }

.scrollable-list {
    max-height: 400px; /* Adjust this height as needed */
    overflow-y: auto;
    padding-right: 10px; /* Optional: Adds padding to avoid overlap with scrollbar */
    scroll-behavior: smooth;
}

    .scrollable-list ul {
        list-style-type: none; /* Optional: Removes bullet points */
        padding-left: 0; /* Removes default padding */
        margin: 0; /* Removes default margin */
        text-align: left; /* Ensures items align left */
    }

    .scrollable-list li {
        text-align: left;
        margin-bottom: 8px; /* Adds space between items */
    }

.pagination {
    margin-top: 20px;
}

    .pagination button {
        margin: 0 5px;
        padding: 5px 10px;
    }

    .pagination span {
        font-weight: bold;
    }

.stats {
    margin-top: 20px;
}

    .stats p {
        margin: 5px 0;
    }

.custom-button {
    border: none; /* Remove border */
    color: white; /* White text */
    padding: 8px 16px; /* Smaller padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make it inline-block */
    font-size: 14px; /* Smaller font size */
    margin: 5px 2px; /* Margin */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s; /* Transition for hover effect */
}

.edit-button {
  
    font-size: 0.8em; /* Adjust relative size */
    background-color: #9C27B0; /* Purple/lavender */
    border-radius: 20px; /* More rounded corners */
    padding: 4px 8px; /* Less vertical space */
    line-height: 1;
    border: none;
    color: #fff;
    transition: background-color 0.3s ease;
}


.edit-button:hover {
    background-color: #7B1FA2; /* Darker purple on hover */
}

.edit-button:disabled {
    background-color: #B0BEC5; /* Gray background for disabled */
    cursor: not-allowed;
    color: #ECEFF1;
}

/* Green "Select All" button */
.select-button {
    background-color: #4CAF50; /* Green background */
}

    /* Darker green on hover */
    .select-button:hover {
        background-color: #45a049;
    }

/* Style for Analyze button when disabled */
    .select-button:disabled {
        background-color: #B0BEC5; /* Gray background */
        cursor: not-allowed; /* Show "not allowed" cursor */
        color: #ECEFF1; /* Light gray text */
    }

/* Red "Deselect All" button */
.deselect-button {
    background-color: #9c6ecc; /* Purple background */
}

    /* Darker purple on hover */
    .deselect-button:hover {
        background-color: #69488c;
    }

    .deselect-button:disabled {
        background-color: #B0BEC5; /* Gray background */
        cursor: not-allowed; /* Show "not allowed" cursor */
        color: #ECEFF1; /* Light gray text */
    }

/* Optional: Add focus effect */
.custom-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 150, 0, 0.75);
}


/* Styling for Analyze button when enabled */
.analyze-button {
    background-color: #2196F3; /* Blue background */
}

    /* Darker blue on hover */
    .analyze-button:hover {
        background-color: #1976D2;
    }

    /* Style for Analyze button when disabled */
    .analyze-button:disabled {
        background-color: #B0BEC5; /* Gray background */
        cursor: not-allowed; /* Show "not allowed" cursor */
        color: #ECEFF1; /* Light gray text */
    }



/* Alert message box */
.alert-message {
    background-color: #444; /* dark grey background */
    color: #fff; /* white text */
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 1.1em;
    max-width: 80%;
    margin: 0 auto; /* centers the element horizontally */
}


.text-center {
    text-align: center;
    font-size: 1.1em;
}


.scroll-to-top {
    position: fixed; /* Stays in a fixed position */
    bottom: 20px; /* 20px from the bottom of the viewport */
    right: 20px; /* 20px from the right of the viewport */
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    padding: 10px 15px; /* Padding */
    font-size: 14px; /* Font size */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    z-index: 9999; /* High z-index to ensure it's on top */
    transition: background-color 0.3s; /* Smooth background-color transition */
}

    .scroll-to-top:hover {
        background-color: #45a049; /* Darker green on hover */
    }

ul {
    list-style-type: disc; /* Display bullets */
    padding-left: 20px; /* Indent the list */
}

li {
    margin-bottom: 5px; /* Space between items */
}

details {
    margin-top: 10px; /* Space above the collapsible section */
    cursor: pointer; /* Pointer cursor for the summary */
}

summary {
    font-weight: bold; /* Make summary bold */
    margin-bottom: 5px; /* Space below the summary */
}

ul {
    padding-left: 20px; /* Indent list items */
    margin-top: 5px; /* Space above the list */
}

.clear-button {
    background-color: #f44336; /* Red background */
    color: white;
    margin-bottom: 30px;
}

    .clear-button:hover {
        background-color: #d32f2f; /* Darker red on hover */
    }

.uploaded-file {
    border: 2px solid #ccc;
    border-radius: 12px;
    box-shadow: 5px 5px 3px #888888;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

.documentsContainer {
    padding: 20px;
    margin: 20px;
    flex-direction: column; /* Stack items vertically */
    justify-content: center;
    align-items: center; /* Horizontally center */
    background-color: #333; /* Darker grey background */
    border: 1px solid #ddd;
    border-radius: 8px;
}

    /* Style specific to drag-drop-container inside documentsContainer */
    .documentsContainer .drag-drop-container {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        justify-content: center;
        align-items: center; /* Horizontally center */
        padding: 10px;
        border-radius: 5px;
        min-height: 150px; /* Ensure a consistent height */
    }


/* Grid layout for 2x2 table-like structure */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two columns */
    grid-template-rows: auto auto; /* Two rows */
    gap: 20px; /* Spacing between grid items */
}

/* Center the title (h3) */
.drag-drop-container h3 {
    margin-bottom: 10px; /* Space between the title and drag-and-drop area */
    text-align: center; /* Center the text */
    width: 100%; /* Ensure the title takes up the full width for proper centering */
    color: #fff; /* Adjust color as needed */
    font-size: 18px; /* Adjust font size as needed */
}

.documentsPre {
    max-width: 600px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    white-space: pre-wrap; /* Wrap long lines */
}

