/* base*/
.container-top-margin {
    margin-top: 3rem;
}
.base-brand-image {
    margin-top: 1rem;
    height: 2.5rem;
}
.navbar-container-setup {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}
.navbar-padding-items {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.navbar-bottom-margin {
    margin-bottom: -1.5rem;
}
.current-page {
    color: #0d6efd !important;
    cursor: default;
}
.base_user_icon {
    height: 1.5rem;
    /* Used a #909090 color base. The filter extracted in https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(67%) sepia(0%) saturate(128%) hue-rotate(168deg) brightness(85%) contrast(94%);
    transition: filter 0.3s;
}
.base_user_icon:hover {
    filter: invert(39%) sepia(1%) saturate(0%) hue-rotate(265deg) brightness(94%) contrast(95%);
}
.dropdown-menu {
    min-width: 10rem;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #16181b;
}
.navbar-chat-toggle {
    padding-top: 0.5rem;
}
.navbar-chat-btn {
    margin-right: 1rem;
    color: #777777;
    border: 1px solid #777777;
}
.navbar-chat-btn:hover {
    color: #2b68c4;
    border: 1px solid #2b68c4;
}
.chat-icon {
    height: 1.2rem;
    /* This filter creates the #2b68c4 blue color for the SVG */
    filter: invert(47%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    transition: filter 0.3s;
    margin-right: 0.3rem;
    margin-top: -0.2rem;
}
.navbar-chat-btn:hover .chat-icon {
    filter: invert(36%) sepia(56%) saturate(1245%) hue-rotate(197deg) brightness(94%) contrast(93%);
}
.dropdown-toggle {
    color: #909090;
}
.dropdown-toggle:hover {
    transition: color 0.3s;
    color: #4b4b4b;
}
.btn-close-sm {
    padding: 0.5rem 1rem 0.5rem 0rem; /* top right bottom left */
    font-size: 0.65rem;
    opacity: 0.5;
}
.btn-close-sm:hover {
    opacity: 0.8;
}
/* Chat Panel Styles */
.chat-panel {
    position: fixed;
    z-index: 1;
    top: 1.3rem; /* Adjust based on your navbar height */
    width: 27rem;  /* Width of the chat panel */
    right: -27rem; /* Start off-screen - Same as the chat panel width */
    height: calc(100vh - 3.5rem); /* 100% of viewport height minus 3.5rem (navbar + spacing) */
    background-color: #fdfdfd;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 5px #33333350;
    border-radius: 0.4rem 0 0 0.4rem;
    border: 1px solid #969696;
    border-right: 0; /* Removes the right border since it's against the edge of the screen */
}
.chat-panel.open {
    right: 0; /* Slide in when open */
}
.chat-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #969696;
}
.chat-header h5 {
    margin-bottom: 0;
}
.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    overflow: hidden;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-message {
    padding: 0.75rem;
    border-radius: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
    position: relative;
    font-size: 0.9rem;
}
.chat-message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.3rem;
    text-align: right;
}
.chat-message-agent {
    align-self: flex-start;
    background-color: #f0f0f0;
    border-radius: 0 0.9rem 0.9rem 0.9rem;
}
.chat-message-user {
    align-self: flex-end;
    background-color: #0d6efd;
    color: white;
    border-radius: 0.9rem 0.9rem 0 0.9rem;
}
.chat-input-container {
    display: flex;
    padding: 0.9rem;
}
.chat-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #7a7a7a;
    border-right: 0;
    border-radius: 1rem 0 0 1rem;
    margin: 0;
}
.chat-input:focus {
    outline: none;
}
.chat-send-btn {
    /* padding: 0rem 0.75rem; */
    padding: 0 0.9rem 0.2rem 0.75rem;
    margin: 0;
    background-color: #0d6efd;
    color: white;
    border: 0;
    border-radius: 0 1rem 1rem 0;
    cursor: pointer;
}
.send-icon {
    height: 1rem;
    /* This ensures the icon is white to contrast against the blue button */
    filter: brightness(0) invert(1);
}
.chat-send-btn:hover {
    background-color: #2b68c4; 
}


/* login.html */
/* Main row container */
.main_row {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
/* Left column with image */
.main_column_left {
    width: 40%;
    position: relative;
    overflow: hidden;  /* Prevent overflow */
}
.login_main_img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 19% 0;
    position: absolute;
    top: 0;
    left: 0;
}
.login_legal_characters {
    height: 89%;
    max-width: 100%; 
    object-fit: cover;
    position: absolute; /* Works with main_column_left overflow:hidden*/
    bottom: 0;
    left: 57%;
    transform: translateX(-57%);
    z-index: 1;
}
.login_legal_numbers {
    height: 69%;
    bottom: -4%;
    position: fixed; /* Overrides main_column_left overflow:hidden, to go above the left column width*/
    left: 44%;
    transform: translateX(-89%);
    z-index: 2;
}
.bottom-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; /* Or width: 100%; */
    height: 3rem; /* Adjusted height */
    background-color: #ffffff41; /* Same logo's background color */
    z-index: 2; /* Ensure it's layered correctly */
    display: flex; 
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    font-size: 0.8rem;
    font-weight: 500;
}
.bottom-banner a {  /* Style the link inside the banner */
    color: #272727;
    text-decoration: none;
}
.bottom-banner a:hover {
    text-decoration: underline;
}
/* Right column containing forms */
.main_column_right {
    width: 60%;
    flex-direction: column;
    padding-top: 1.4rem;
    overflow-y: auto; /* Enables scrolling if content is too long */
    z-index: 3;
}
/* Style for the info text container */
.login_info_text {
    text-align: left;
    padding: 0 2rem;  /* Add padding to the left and right */
    color: #333;
    position: absolute; /* Take out of normal flow */
    left: 70%;
    transform: translateX(-50%); /* Center horizontally */
    width: 100%; /* Make it wider */
    max-width: 500px; /* Cap the maximum width */
}
.login_info_text p {
    font-size: 0.9rem;
}
.login_main_titles {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    color: #2501fb;
    font-size: 2.75rem;
    font-weight: 900;  /* 900 is the default weight. This is a specific weight downloaded from Google Fonts. */
    margin-bottom: 0rem;
}
.hairline {
    border: none;
    height: 2px;
    background-color: #2501fb;
    opacity: 1;
    margin-bottom: 1.1rem;
    margin-top: 0.7rem;
}
.feature_blocks {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 1.5rem 0 2rem 0;
}
.feature-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.arrow-icon {
    /* min-width: 1rem; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.arrow-icon img {
    width: 43px;
    height: auto;
}
.feature-content {
    background-color: #e0e0e0;
    padding: 0.85rem;
    flex: 1;
    font-size: 0.8rem;
}
.clients_section {
    margin-top: 2.8rem;
}
.clients-logos {
    padding-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 15px;
    filter: grayscale(100%);  /* Make the logos grayscale */
    opacity: 0.9;  /* Make the logos a bit transparent */
}
.client-logo {
    width: 135px;
    height: 75px;
    object-fit: contain;
    display: block;
}
.client_logo_reduce {
    padding: 0.3rem;  /*To reduce logo size*/
}
/* Forms container */
.forms_container {
    max-width: 19rem;  /* Matches the login_input_size width */
    margin: 0 auto;    /* Centers the container horizontally */
    background-color: #ffffffad; /* White. Used when column is too narrow and elements from left col. overflow to the right col.*/
}
.auth_error_message {
    color: #ff0000;
}
.login_input_size {
    width: 19rem;
}
/* Auth buttons row */
.auth_buttons_row {
    display: flex;
    justify-content: flex-end;
    gap: 1.1rem;
    padding-right: 2.5rem;
    margin-bottom: 3.1rem;
}
.auth_button {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    min-width: 4.2rem;
    border-radius: 1px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    line-height: 1;
    font-size: 1.1rem;
    font-weight: 500;  /* This is a specific weight downloaded from Google Fonts. */
}
.auth_button:hover {
    background-color: #7b8086;
    border-color: #7b8086;
    color: #fff;
}
/* Styles for the active state of auth buttons */
.auth_button.active {
    position: relative;
}
/* Bottom border indicator for active buttons */
.auth_button.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2501fb;
}
.login_button {
    background-color: #735bfd;
    color: #fff;
    border-color: #735bfd;
}
.signup_button {
    background-color: #2501fb;
    color: #fff;
    border-color: #2501fb;
}
/* Flash Messages */
.login-flash-messages {
    width: 100%;
    max-width: 35rem;
    margin: 0 auto;
}


/* terms_and_policies.html */
.terms-container {
    display: flex;
    gap: 1rem;
}
.terms-divider {
    width: 1px;
    background-color: #ccc;
    margin: -1rem 3rem;
}
.terms_left {
    flex: 1.164;
}
.terms_right {
    flex: 1;
}


/* upload_file_home.html */
.hover-row:hover {
    background-color: #f5f5f5;
}
.clickable-cell {
    cursor: pointer;
}
/* Table aligment fixes for PDF upload table */
.pdf-upload-table th,
.pdf-upload-table td {
    vertical-align: middle;
}
.pdf-upload-table .form-switch {
    padding-left: 0;
}
.pdf-upload-table .form-check-input {
    float: none;
    margin-left: 0;
}
/* Center the toggle switch in PDF upload table */
.pdf-upload-table .text-center .form-check.form-switch {
    display: inline-block;
}
.upload-file-label {
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
}
.margin-documents-table {
    margin-top: 1.5rem;
}


/* show_results.html */
.min-width-container {
    min-width: 35rem;
}
.range-margins {
    margin-top: 0.5rem;  /* equivalent to mt-2 */
    margin-bottom: 0.5rem;  /* equivalent to mt-2 */
}
.cumulative-filter-label {
    position: relative;
    top: 0.5rem;
}
.text-link-imported {
    color:#7a7a7a;
    text-decoration: none;
}
.text-link-imported:hover {
    color:#5f5f5f;
    cursor: pointer;
}
.toggler-block {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}


/* selected_query_element.html */
.filename-display, 
.all-display {
    margin-left: 0.27rem;
}
.matched-name-link {
    color:#0056b3;
    text-decoration: none;
    cursor: pointer;
}
.show-all-button, 
.file-only-button {
    margin-left: 0.5rem;
}
.vector-store-select option {
    color: black; /* Ensure all options in dropdown remain black */
}
.vector-store-select.highlight-selected {
    color: #c28b01; /* Dark gold color for highlighted selection */
}
.vector-store-select.highlight-highest {
    color: #016e01; /* Green color for highest selection */
}
.vector-store-select.highlight-ai {
    color: #0056b3; /* Blue color for AI-selected items */
}


/* match_items.html */
.discrete-link {
    color:#0056b3;
    padding: 0;
    margin: 0;
}
.element-form {
    display: inline;
}
.file-match-margins {
    margin-bottom: 1.5rem;
}


/*stats_n_analysis.html*/
.full-width-container {
    padding-left: 0 !important;  /* equivalent to mt-4 */
    padding-right: 0 !important;  /* equivalent to mt-4 */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.details-narrow {
    width: 6rem;
}
.total-pdf-value {
    margin-top: 0.5rem;
}
.stats-toggler {
    width: 8.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}
.width-toggler {
    width: 100%;
}
.switch-padding-left {
    padding-left: 0rem;
}
.form-check-input.cumulative-include-file-input {
    margin-left: 0.4rem;  /* has to be overridden to get rid of default -4em */
}
.items-table {
    margin-top: 1.5rem;
}
.stats-text-muted {
    color: #6c757d;
    font-weight: normal;
}
.stats-reduced-font-size {
    font-size: 0.83rem;
}
.stats-vertical-padding {
    padding-top: 0.17rem;
    padding-bottom: 0.07rem;
}
.stats-text-normal {
    font-weight: normal;
}
.delta-impact-blue {
    color: rgb(0, 0, calc(var(--value) * 2 * 255));
}
.delta-total-impact-red {
    color: rgb(calc(var(--value) * 10 * 255), 0, 0);
}
.delta-total-impact-blue {
    color: rgb(0, 0, calc(var(--value) * 10 * 255));
}


/* stats_item.html */
.stats-item-container {
    width: 80%;
    margin-left: 0;
}
.stats-item-container .row {
    margin-right: 0;
}
.stats-item-title {
    margin-bottom: 0.5rem;
}
.stats-table-width-top {
    width: 80%;
    margin-top: 1.5rem;
}
.table-stats-padding-left {
    padding-left: 1rem;
}
.stats-section-title {
    margin-top: 2.4rem;
    margin-bottom: 0.9rem;
}
.stats-items-table {
    margin-top: 1.1rem;
    margin-bottom: 3rem;
}
.stats-text-no {
    color: #ff0000;
}
.stats-text-yes {
    color: #008000;
}
.bold-cell {
    font-weight: bold;
}
.table-section-padding {
    border-top: 1.4rem solid transparent;
}
/* Chart font size - required because it is a .js element */
:root {
    --chart-font-size-y: 15rem;
    --chart-font-size-x: 13rem;
    --chart-font-size-l: 13rem;
    
    /* Chart statistical range colors */
    --chart-color-extreme: #ff0000b3;
    --chart-color-high: #ff8c00c2;
    --chart-color-moderate: #cfbb00c9;
    --chart-color-normal: #00ff00b3;
    --chart-color-low: #00bfffb3;
    --chart-color-very-low: #5050f0b3;
    --chart-color-min: #007bc2b3;
    --chart-color-max: #8B0000;

    /* Chart statistical range colors */
    --chart-stats-background: rgba(75, 192, 192, 0.3);
    --chart-stats-border: rgba(75, 192, 192, 1);
}
#coreGraphsContainer {
    height: 13rem;
}
#expandedGraphsContainer {
    margin-top: 1rem;
    height: 15rem;
}
#current-file-indicator {
    /* color: #008000; */
    font-weight: bold;
}
.table-reduced-font-size {
    font-size: 0.75rem;
    vertical-align: middle;
}
.table-item-left {
    text-align: left !important;
}
.stdev-range-font-size {
    font-size: 0.85rem;
}
.stdev-range-value {
    font-variant-numeric: tabular-nums;
}
.stdev-range-value::before {
    content: attr(data-value);
    quotes: none;
}
.analysis-font-size {
    font-size: 0.85rem;
}
.analysis-dimensions-padding {
    padding-left: 1.5rem !important;
}


/* edit_item_dimensions.html */
/* Default thumb color (Bootstrap blue) */
.custom-range::-webkit-slider-thumb {
    background-color: #0d6efd;
}
.custom-range::-moz-range-thumb {
    background-color: #0d6efd;
}
.custom-range::-ms-thumb {
    background-color: #0d6efd;
}
/* Gray thumb when value is 0 */
.custom-range.value-zero::-webkit-slider-thumb {
    background-color: #6c757d; /* Bootstrap's gray color */
}
.custom-range.value-zero::-moz-range-thumb {
    background-color: #6c757d;
}
.custom-range.value-zero::-ms-thumb {
    background-color: #6c757d;
}
.small-textarea {
    font-size: 0.85rem;
}
.small-textarea::placeholder {
    color: rgb(161, 161, 161);
}
/* Spiderweb Chart */
#spiderwebChart {
    width: 100%;
    height: 300px;
    margin: auto;
}
.card-body {
    padding: 1rem;
}
.margin-bottom-spider-elements {
    margin-bottom: -1.5rem;
}
.margin-bottom-item-details {
    margin-bottom: 1.5rem;
}
.margin-below-two {
    margin-bottom: 2rem;  /* equivalent to mb-4 */
}


/* Common */
/*Spiderweb Chart Add these under the Chart statistical range colors section */
:root {
    /* Spider Chart dimension colors */
    --spider-color-4: rgb(0, 128, 0);
    --spider-color-3: rgb(0, 174, 255);
    --spider-color-2: rgb(255, 165, 0);
    --spider-color-1: rgb(255, 0, 0);
    --spider-color-0: rgb(128, 128, 128);
    /* Spider Chart border color for points */
    --spider-point-border-color: #fff;
}
/*Other Common*/
.number-right{
    text-align:right;
}
.number-center{
    text-align:center;
}
.bottom-top-buttons {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.margin-end{
    margin-right: 0.5rem; /* equivalent to me-2 */
}
.margin-above {
    margin-top: 2rem;
}
.margin-below-p-seven {
    margin-bottom: 0.7rem;  /* equivalent to mb-3 */
}
.hover-stats:hover {
    background-color: #e7e7e7;
}
/* Delta PDF value colors */
/* Maps -0.15 to -0.5 range for blue */
.delta-pdf-blue {
    color: rgb(0, 0, calc((var(--value) * -1 - 0.15) * (255 / 0.35)));
}
/* Multiplied by 2 to make the range from 0 to 50%. Then stays red above 50% */
.delta-pdf-red {
    color: rgb(calc(var(--value) * 2 * 255), 0, 0);
}
.background-color-stats {
    background-color: #ebebeb;
}