﻿/* Input Validation Styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background-color: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Loading Progress */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* Root Styles */
:root {
    --zoom-scale: 1;
}

/* Reset and Base Styles */
html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Layout */
.layout-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.fixed-header {
    position: fixed; /* Keeps the header fixed at the top of the viewport */
    top: 0; /* Aligns the header at the top */
    left: 0; /* Aligns the header to the left */
    width: 100%; /* Makes the header span the full width of the viewport */
    height: 30px; /* Fixed height for the header */
    z-index: 1000; /* Ensures the header stays on top of other content */
    background-color: #fff; /* Background color for visibility */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: Adds shadow for depth */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #003366;
    color: white;
    text-align: left;
    height: 30px;
    z-index: 1000;
    line-height: 30px;
    box-sizing: border-box;
}

/* Footer styling for fixed position, background, and border */
footer.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f3f3f3;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    border: 1px solid black;
    box-sizing: border-box;
}

.footer-item {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 14px;
}
.footer-item-right {
    flex: 1;
    text-align: right;
    padding: 5px;
    font-size: 14px;
}

main {
    flex: 1;
    margin-top: 30px;
    margin-bottom: 30px;
    overflow-y: auto;
    padding: 20px;
}

/* Menu */
.menu {
    display: flex;
    background-color: #002244;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item {
    padding: 0;
    line-height: 30px;
    color: white;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    white-space: nowrap;
}

    .menu-item:hover {
        background-color: #004a87;
    }

    .menu-item span {
        cursor: pointer;
    }

.submenu {
    display: none;
    list-style: none;
    margin: 0;
    position: absolute;
    background-color: #003366;
    top: 100%;
    left: 0;
    padding: 0;
    border-radius: 0;
    width: 200px;
    box-sizing: border-box;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-item:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.submenu-item {
    padding: 0 0 0 5px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    display: block;
}

    .submenu-item:hover {
        background-color: #004a87;
    }

.nested-submenu {
    display: none;
    position: absolute;
    background-color: #003366;
    top: 100%;
    left: 100%;
    padding: 0px;
    border-radius: 0;
    width: 200px;
    box-sizing: border-box;
    z-index: 1000;
}

.submenu-item:hover .nested-submenu {
    display: block;
}

.nested-submenu .submenu-item {
    padding: 0px;
}


/* Accessibility - Focus states */
.menu-item:focus,
.submenu-item:focus {
    outline: 2px solid #ffa500;
}

/* Right-aligned menu */
.right-menu {
    margin-left: auto;
    margin-right: 5px;
    display: flex;
    align-items: center;
    height: 30px;
}

/* Login Modal */
.login-modal {
    position: absolute;
    top: 30px;
    right: 10px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 250px;
}

    .login-modal label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #000;
    }

    .login-modal input {
        width: 100%;
        padding: 5px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 3px;
        box-sizing: border-box;
    }

    .login-modal .password-container {
        display: flex;
        align-items: center;
    }

        .login-modal .password-container input {
            flex: 1;
        }

        .login-modal .password-container button {
            margin-left: 5px;
            padding: 1px 1px;
            background: none;
            border: none;
            cursor: pointer;
            color: #007bff;
        }

            .login-modal .password-container button:hover {
                color: #0056b3;
            }


.cancel-button {
    background-color: #ccc;
    color: black;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

    .cancel-button:hover {
        background-color: #999;
    }

/* Feedback Message Styling */
.feedback-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    background-color: white; /* background */
    color: red; /* Ensure the text is white */
}

    /* Success Feedback Message */
    .feedback-message.success {
        background-color: #28a745; /* Green for success */
        color: white; /* Text color */
    }

    /* Error Feedback Message */
    .feedback-message.error {
        background-color: white; /* background */
        color: Red; /* Text color */
    }


/* Add margin to the modal for better spacing */
.login-modal {
    margin-top: 0px;
}

/* Timeout Modal Overlay */
.timeout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


.header-button {
    padding: 5px 10px; /* Adjust padding to make buttons smaller */
    margin: 2px; /* Adds a small margin around the button */
    font-size: 0.8em; /* Smaller font size */
    border-radius: 5px; /* Optional: rounded corners */
    border: 1px solid #ccc; /* Optional: border */
    font-weight: bold; /* Makes the text bold */
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-button {
    width: 20px; /* Fixed width for the filter button */
    height: 20px; /* Fixed height for consistency */
    border: none; /* No visible border */
    background: transparent; /* Transparent background */
    cursor: pointer; /* Pointer cursor on hover */
    padding: 0; /* No padding */
    margin-right: 5px; /* Space between filter button and the next button */
    vertical-align: middle; /* Aligns vertically with adjacent inline elements */
    display: inline-flex; /* Using flex to center the image within the button */
    align-items: center; /* Center content vertically within the button */
    justify-content: center; /* Center content horizontally within the button */
}


.sort-button {
    flex-grow: 1; /* Take the remaining space in the container */
    border: none; /* No visible border */
    background: transparent; /* Transparent background */
    cursor: pointer; /* Pointer cursor on hover */
    display: flex; /* Flex to align text and image horizontally */
    align-items: center; /* Center items vertically */
    justify-content: left; /* Left align content */
    padding: 0; /* No padding */
    text-align: left; /* Text align left */
    overflow: hidden; /* Prevent overflow */
    white-space: nowrap; /* Keep text in a single line */
    font-weight: bold; /* Makes the text bold */
    margin-left: 5px;
}

    .sort-button span {
        margin-right: 5px; /* Space between text and the image */
    }

    .filter-button:hover, .sort-button:hover {
        background-color: lightblue; /* Light grey background on hover */
    }

.header-container .icon-button {
    width: 20px; /* Set the width of the button */
    height: 20px; /* Set the height of the button */
    line-height: 20px; /* Aligns the icon vertically */
    padding: 0; /* Removes padding inside the button */
    margin-right: 2px; /* Small space between buttons */
    border: 1px solid #ccc; /* Adds a light grey border */
    background: transparent; /* Keeps the background transparent */
    border-radius: 5px; /* Rounds the corners of the button */
}



.quick-grid-table th, .quick-grid-table td {
    border: 1px solid black;
}



.quick-grid-table tr:nth-child(odd) {
    background-color: #f2f2f2; /* Light gray for odd rows, overrides td background */
}

.quick-grid-table tr:nth-child(even) {
    background-color: #ffffff; /* White for even rows, keeps cell background consistent */
}


.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-around; /* Adjusts spacing around each item */
}

.page-size-chooser {
    margin: 10px 0px; /* Adds veritcal and horizontal space between selectors */
    margin-right: 15px;
}

.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* Remove flexbox centering to allow free positioning */
    display: block;
}

.modal-container {
    position: absolute; /* Necessary for dynamic positioning */
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    width: auto; /* Adjust as needed */
    display: block; /* Ensure the modal is visible */
    border: 2px solid orange; /* Temporary border for debugging */
}

.modal-header {
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-body {
    margin-bottom: 15px;
}

.modal-footer {
    display: flex;
    justify-content: space-evenly; /* Ensures equal spacing between buttons */
    gap: 10px; /* Adds consistent space between buttons */
    margin-top: 15px; /* Adds some space between the footer and the modal body */
}

.btn {
    padding:2px 8px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    width: 70px;
}

    .btn:hover {
        background-color: #0056b3;
    }

    .btn:disabled {
        background: #cccccc; /* grey out */
        color: #666666; /* dim text */
        cursor: not-allowed; /* change cursor */
    }

    .btn img {
        height: 20px; /* Maintain aspect ratio */
        width: 80%; /* Adjust based on your icon size needs */
        vertical-align: middle; /* Center align vertically */
    }

.btn-icon {
    padding: 2px 8px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    width: 40px;
}
.btn-icon img {
    height: 15px; /* Maintain aspect ratio */
    width: 80%; /* Adjust based on your icon size needs */
    vertical-align: middle; /* Center align vertically */
}
.btn-icon:hover {
    background-color: #0056b3;
}

.controls {
    display: flex; /* Ensure flexbox is applied */
    align-items: center;
    gap: 15px; /* Adds spacing between buttons */
}

.btn-flex-disabled {
    padding: 2px 8px;
    background: #ccc;
    color: #888;
    border: none;
    cursor: not-allowed;
    border-radius: 3px;
    white-space: nowrap;
}

.btn-flex {
    padding: 2px 8px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    white-space: nowrap;
}

    .btn-flex:hover {
        background-color: #0056b3;
    }


    .breadcrumb {
    color: darkblue;
}
.breadcrumb-value{
    color: darkgreen;
}

body {
    font-size: 14px;
}

.modal-container-editform {
    position: absolute; /* Necessary for dynamic positioning */
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    width: 400px; /* Adjust as needed */
    display: block; /* Ensure the modal is visible */
    resize: both; /* Enable resizing both horizontally and vertically */
    overflow: auto; /* Adds scrollbars if content overflows */
}
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .form-group label {
        flex: 0 0 90px; /* Adjust width as needed */
        text-align: left;
    }

    .form-group input, .form-group .validation-message {
        flex: 1; /* Take the remaining space */
        margin-left: 10px; /* Space between label and input */
    }

        /* Special case for job edit dialog numeric fields */
        .form-group input[type="number"].edit-input-short {
            width: 60px; /* fixed width */
            flex: 0 0 auto; /* prevent flex from stretching it */
            margin-left: 10px; /* keep spacing like others */
            text-align: right;
        }

        /* Override only checkboxes */
        .form-group input[type="checkbox"] {
            flex: 0 0 auto; /* prevent it from stretching */
            width: auto; /* let it size naturally */
            margin-left: 10px; /* keeps some spacing from label */
            align-self: flex-start; /* aligns at top if label is taller */
        }

.form-group-inputtextarea {
    flex: 1; /* Take the remaining space */
    margin-left: 10px; /* Space between label and input */
    font-family: Arial, sans-serif;
    height: auto;
    min-height: 20px;
}

.form-group-inputtext-100 {
    width: 100px;
    margin-left: 10px; /* Space between label and input */
    font-family: Arial, sans-serif;
}

/* Style for the modal dialog header */
.modal-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px; /* Reduced padding */
    font-size: 14px; /* Adjusted font size for smaller text */
    background-color: #f4f4f4;
    border-bottom: 0px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 20px;
    height: 30px;
} 

    /* Style for the button container within the header */
    .modal-dialog-header.buttons {
        display: flex; /* Enables flexbox for the button container */
        gap: 10px;
        margin-top: 20px;
    }

    .modal-dialog-header h3 {
        flex-shrink: 0; /* Prevents the title from shrinking */
    }


.modal-background-panel {
    display: flex;
    width: 100%;
    height: 100vh; /* Ensures the container is full height of the viewport */
    border: 2px solid green; /* Temporary border for debugging */
}

.modal-container-leftpanel {
    flex: 0 0 25%;
    overflow: auto;
    border: 2px solid red; /* Temporary border for debugging */
}

.modal-container-rightpanel {
    flex: 1;
    overflow: auto;
    border: 2px solid blue; /* Temporary border for debugging */
}

.rkgrid-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px;
    height: 480px;
    background-color: white;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: auto;
    resize: both;
    z-index: 1000;
    border-radius: 1px;
}
.rkgrid-content-wrapper-35x90 {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 90%;
    background-color: white;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: auto;
    resize: both;
    z-index: 1000;
    border-radius: 5px;
}


.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    cursor: se-resize;
}


.rkgrid-container-2by1 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns each taking half of the container */
    grid-template-rows: 1fr; /* Single row taking full height */
    gap: 15px; /* Gap between columns */
    width: 100%; /* Full width of the wrapper */
    height: 100%; /* Full height of the wrapper */
}

.rkgrid-container-2by1-200pxHeight {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns each taking half of the container */
    grid-template-rows: 1fr; /* Single row taking full height */
    gap: 15px; /* Gap between columns */
    min-height: 200px;
  /*  background: magenta;*/
    width: 100%; /* Full width of the wrapper */
    height: auto;
}

.rkgrid-container-2by1-75by25 {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Two columns, 1st one at 75%, 2nd at 25% */
    grid-template-rows: 1fr; /* Single row taking full height */
    gap: 15px; /* Gap between columns */
    width: 100%; /* Full width of the wrapper */
    height: 100%; /* Full height of the wrapper */
}

.rkgrid-container-1by1 {
    display: grid;
    grid-template-columns: 1fr; /* one columns each taking half of the container */
    grid-template-rows: 1fr; /* Single row taking full height */   
    width: 100%; /* Full width of the wrapper */
    height: 100%; /* Full height of the wrapper */
}

.rkgrid-container-1by2 {
    display: grid;
    grid-template-columns: 1fr; /* One column */
    grid-template-rows: 1fr 1fr; /* Two rows taking half of the container */
    gap: 5px; /* Gap between columns */
    width: 100%; /* Full width of the wrapper */
    height: 100%; /* Full height of the wrapper */
}
.rkgrid-container-1by2-fixed {
    display: grid;
    grid-template-columns: 1fr; /* One column */
    grid-template-rows: 120px 200px; /* First row 120px, second row 250px */
    gap: 10px; /* Gap between rows */
    width: 100%;
}

.rkgrid-container-2by2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%; /* Full width of the wrapper */
    height: 100%; /* Full height of the wrapper */
}

.rkgrid-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: top;
    padding: 1px;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.rkgrid-cell-kb {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: top;
    /*padding: 1px;*/
    width: 100%;
    height: 100%;
    border: .5px solid black;
    border-radius: 5px;
}

.rkgrid-cell-height-50 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* use flex-start instead of "left" */
    justify-content: flex-start; /* use flex-start instead of "top" */
    padding: 1px;
    width: 100%;
    height: 50px; /* fixed height */
    min-height: 50px; /* enforce lower bound */
    max-height: 50px; /* enforce upper bound */
    border-radius: 5px;
}
.rkgrid-cell-height-100 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* use flex-start instead of "left" */
    justify-content: flex-start; /* use flex-start instead of "top" */
    padding: 1px;
    width: 100%;
    height: 100px; /* fixed height */
    min-height: 100px; /* enforce lower bound */
    max-height: 100px; /* enforce upper bound */
    border-radius: 5px;
}

.rkgrid-cell-height-120 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* use flex-start instead of "left" */
    justify-content: flex-start; /* use flex-start instead of "top" */
    padding: 1px;
    width: 100%;
    height: 120px; /* fixed height */
    min-height: 120px; /* enforce lower bound */
    max-height: 120px; /* enforce upper bound */
    border-radius: 5px;
}
.rkgrid-cell-height-200 {
    position: sticky;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* use flex-start instead of "left" */
    justify-content: flex-start; /* use flex-start instead of "top" */
    padding: 1px;
    width: 100%;
    height: 200px; /* fixed height */
    min-height: 200px; /* enforce lower bound */
    max-height: 200px; /* enforce upper bound */
    border-radius: 5px;
}

.rkmodal-container-editform {
    position: absolute;
    top: 0; left: 0;
    width: 98.5%;    
    background: white;
    padding: 5px;       
    z-index: 1001;
    overflow: auto;
}

/* Style for the button group within a container */
.rkmodal-button-group {
    display: flex; /* Enables flexbox for the button container */
    gap: 10px;
    margin-top: 10px;
}

/* --- BEGIN TOAST STYLES --- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    min-width: 250px;
    max-width: 400px;
    padding: 1rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: toast-slide-fade 4s ease forwards;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Toast Types */
.toast-success {
    background-color: #38a169; /* Deep green */
}

.toast-error {
    background-color: #e53e3e; /* Strong red */
}

.toast-warning {
    background-color: #dd6b20; /* Orange tone */
    color: #fff;
}

.toast-info {
    background-color: #3182ce; /* Muted blue */
}

.toast-default {
    background-color: #4a5568; /* Dark gray */
}

/* Toast Animation */
@keyframes toast-slide-fade {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    10% {
        opacity: 1;
        transform: translateX(0);
    }

    90% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}
/* --- END TOAST STYLES --- */
/* Narrow input style for fields like Id */
.edit-input-short {
    width: 80px; /* fixed width */
    flex: 0 0 auto; /* stop it from growing/shrinking */
    display: inline-block; /* optional, just reinforces */
}

.rk-h4-tight {
    font-size: 1.0rem;
    font-weight: 700;
    color: darkblue;
    margin-top: 0.25rem; /* smaller spacing */
    margin-left: 0.25rem;
    margin-bottom: 0.25rem; /* smaller spacing */
}

.rk-inputtextarea {
    flex: 1 1 auto; /* grow, shrink, auto basis */
    width: 97%;
    margin-left: 0.25rem; /* Space between label and input */
    font-family: Arial, sans-serif;
    min-height: 80px; /* keeps a decent box */
}
.rk-inputtextarea-40 {
    flex: 1 1 auto; /* grow, shrink, auto basis */
    width: 97%;
    margin-left: 0.25rem; /* Space between label and input */
    font-family: Arial, sans-serif;
    min-height: 40px; /* keeps a decent box */
}

.rk-inputtextarea-fill {
    flex: 1 1 auto; /* allow grow/shrink within flex/grid */
    width: 97%; /* nearly full width like your other style */
    margin-left: 0.25rem; /* keep consistent spacing */
    font-family: Arial, sans-serif;
    height: 100%; /* fill available container height */
    resize: both; /* user can resize horizontally/vertically */
    box-sizing: border-box; /* keep padding/border inside the defined size */
}

.rk-inputtextarea-jobresult {
    flex: 1 1 auto; /* grow, shrink, auto basis */
    width: 98.5%;
    margin-left: 0.25rem; /* Space between label and input */
    font-family: Arial, sans-serif;
    min-height: 80px; /* keeps a decent box */
}
.rk-inputtextarea-execution-metrics {
    flex: 0 0 auto; /* don't grow, don't shrink */
    width: 95%;
    margin-left: 0.25rem; /* Space between label and input */
    font-family: Arial, sans-serif;
    height: 150px; /* fixed height */
    resize: none; /* optional: prevents manual resizing */
}

.rk-output-pre {
    flex: 1 1 auto; /* expand to fill container initially */
    width: 97%;
    min-height: 100px; /* give it some starting height */
    margin-left: 0.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    background-color: #f5f5f5; /* light gray like read-only */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    white-space: pre-wrap; /* preserve newlines but allow wrapping */
    word-wrap: break-word;
    color: #333;
    resize: both; /* make it resizable horizontally & vertically */
    overflow: auto; /* ensure scrollbars if text overflows */
}


.rk-output-pre-metrics {
    flex: 1 1 auto; /* expand to fill container initially */
    width: 90%;
    min-height: 100px; /* give it some starting height */
    margin-left: 0.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    background-color: #f5f5f5; /* light gray like read-only */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    white-space: pre-wrap; /* preserve newlines but allow wrapping */
    word-wrap: break-word;
    color: #333;
    resize: both; /* make it resizable horizontally & vertically */
    overflow: auto; /* ensure scrollbars if text overflows */
}




#jobEditModalHeader {
    cursor: move;
    user-select: none; /* stops text highlighting */
}



.rkgrid-content-wrapper-job {
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px;
    height: 850px;
    background-color: white;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: auto;
    z-index: 1001;
    border-radius: 1px;
    resize: both;
    user-select: none;  Prevent text selection during drag 
}

    .rkgrid-content-wrapper-job.maximized {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        resize: none !important;
    }
.modal-background-job {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: block;  no flexbox centering 
    overflow: hidden;  keeps scrollbars from showing 
}

     optional: ensure the draggable modal sits above the overlay 
    .modal-background-job .rkgrid-content-wrapper-job {
        position: absolute;
        z-index: 1001;
    }



.rkgrid-content-wrapper-kb {
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px;
    height: 850px;
    background-color: white;
    padding-left: 5px;
    padding-right: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 1px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    /* Do NOT set overflow here! */
}

    .rkgrid-content-wrapper-kb.maximized {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        resize: none !important;
    }

.modal-background-kb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: block; /* no flexbox centering */
    overflow: hidden; /* keeps scrollbars from showing */
}

    /* optional: ensure the draggable modal sits above the overlay */
    .modal-background-kb .rkgrid-content-wrapper-kb {
        position: absolute;
        z-index: 1001;
    }

/* Clean, icon-only window control buttons */
.window-control-btn {
    background: transparent; /* no background */
    border: none; /* remove border */
    padding: 0.25rem; /* small clickable area */
    margin-left: 0.5rem; /* space between buttons */
    cursor: pointer;
    font-size: 22px; /* make the icon bigger */
    line-height: 1;
    color: #333; /* adjust as needed */
}

    .window-control-btn:hover {
        background-color: rgba(0,0,0,0.1); /* subtle hover feedback */
        border-radius: 3px;
    }

    .window-control-btn:active {
        background-color: rgba(0,0,0,0.2); /* pressed effect */
    }


fieldset .form-control {
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Generic icon-only button (no border, no background) */
.icon-toggle-btn {
    background: transparent;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333; /* tweak for dark/light mode */
}

    .icon-toggle-btn:hover {
        color: #0078d4; /* hover highlight */
    }

.chevron-icon {
    font-size: 14px;
    line-height: 1;
    user-select: none;
}


.allow-select, .allow-select * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto; /* in case a parent disabled events */
}

.rk-output-pre.selectable {
    white-space: pre-wrap; /* wrap long lines */
    word-break: break-word; /* break long tokens */
    background: #f9f9f9; /* optional */
    padding: .5rem; /* optional */
    border-radius: 6px; /* optional */
}


.flex-grow-1 {
    flex-grow: 1;
    min-height: 0; /* Important for scroll in flex layouts */
    overflow: auto;
}

.json-viewer-cell {
    border: 0.5px solid black;
    margin-left: 5px;
    margin-right: 15px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.json-viewer-box {
    border: 1.5px solid #b9b9b9;
    border-radius: 8px;
    background: #f7f7fa;
    padding: 12px;
    /* Prevent overflow: */
    max-width: 100%;
    box-sizing: border-box;
    /* Key for scrolling long JSON: */
    max-height: 400px;
    overflow: auto;
    /* Optional: shadow for depth */
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


/* Sticky header for inside modal */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: white;
    border-bottom: 1px solid #ddd;
    /* Optional: shadow for "lifted" look */
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* Scrollable body below header */
.modal-body-scrollable {
    flex: 1 1 auto;
    min-height: 0; /* critical for flex children to allow scrolling */
    overflow-y: auto;
    padding-top: 18px; /* Optional, space below header */
    /* Remove height/max-height if not needed; it will fill the space */
}

    /* Optional: add this if you want the scrollable zone to not run to the very bottom edge of the modal */
    .modal-body-scrollable > .rkgrid-cell {
        margin-bottom: 24px;
    }


.magenta-fill {
    flex: 1 1 auto; /* Grows to fill vertical space */
    background: magenta; /* Easy to see! */
    min-height: 0; /* Important in flex layouts for proper shrinking */
    overflow: auto; /* Content scrolls if too tall */
}

/* === MASTER MODAL (Reusable Dialogs) === */
.modal-background-master {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content-wrapper-master, .modal-body-scrollable-master {
    box-sizing: border-box;
}

.modal-content-wrapper-master {
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px;
    min-width: 500px;
    height: 750px;
    min-height: 400px;
    background: white;
    padding: 0 10px 0 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    resize: both;
    overflow: hidden; /* only body scrolls */
}

    .modal-content-wrapper-master.maximized {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        resize: none !important;
    }

.modal-header-master {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px 4px 0;
    border-bottom: 1px solid #eee;
    min-height: 38px;
    cursor: move; /* If draggable */
}

    .modal-header-master h2 {
        flex-shrink: 0;
        font-size: 1.2rem;
        margin: 0 12px 0 0;
        font-weight: 700;
        color: #222;
        white-space: nowrap;
    }

.modal-header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.modal-body-scrollable-master {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: scroll;
    background: #ffe5fd; /* Light magenta for debugging */
    padding: 18px 8px 14px 8px;
    border-radius: 2px;
}

@media (max-width: 1100px) {
    .modal-content-wrapper-master {
        width: 95vw;
        height: 90vh;
    }
}

.full-area-div {
    /* This is the key: it tells the div to grow and take up ALL
               the remaining vertical space in its parent (the body) */
    flex-grow: 1;
    min-height: 0;
    overflow-y: scroll; /* Force vertical scrollbar to show all the time */
    width: 100%;
    box-sizing: border-box;
    padding: 2px;
    /*background-color: purple;*/
}

.json-viewer {
    word-wrap: break-word;
    white-space: pre-wrap;
    font-family: monospace;
    min-height: 100px;
    background: #f7f7fa;
    padding: 1px;
    box-sizing: border-box;
}

.json-border-wrapper {
    /* Styles specifically for the border and internal padding */
    border: 1px solid #ccc;
    padding: 1px;
    background-color: #fff; /* Optional: white background for the content area */
    min-height: 100px;
    border-radius: 3px;
    box-sizing: border-box;
}

.flex-form-container {
    display: flex;
    flex-direction: column;
    height: 100%; /* Important: The form needs to fill its parent wrapper */
}

.form-control-static {
    display: inline-block;
    min-width: 100px;
    padding: 5px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #222;
    font-size: 1em;
}

.edit-input-120 {
    width: 120px; /* or 100px, whatever fits your format */
    min-width: 80px;
    max-width: 150px;
    height: 20px;
    line-height: 20px;
    font-size: 1rem;
    /*padding: 2px 8px;*/
}

.edit-input-80 {
    width: 80px; /* or 100px, whatever fits your format */
    min-width: 80px;
    max-width: 80px;
    height: 20px;
    line-height: 20px;
    font-size: 1rem;
    /*padding: 2px 8px;*/
}



/**********************************************
 STTAI LANDING PAGE — EMBEDDED SLIDESHOW (IMAGES)
 Usage:
   <div class="landing-bg">
     <div class="landing-content">
       <section class="landing slideshow">...</section>
     </div>
   </div>
**********************************************/

.landing-title {
    font-size: clamp(2.5rem, 4vw, 4rem); /* responsive sizing */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* ---- Full-viewport background image ---- */
.landing-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

    .landing-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('/images/high-tech.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 1;
        z-index: 0;
    }

/* ---- Centered, semi-transparent content panel over bg ---- */
.landing-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
    background-color: rgba(0,0,0,.80);
    border: 0px solid #ffffff;
    border-radius: 10px;
    height: 650px;
    width: 800px;
    max-width: 1100px; /* Reduce from 1400 to 1100 for starters */
    margin: 32px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,.5);
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .landing-content {
        max-width: 98vw; /* On small screens, use almost full width */
        padding: 8px 4px; /* Less padding on sides */
        font-size: 0.98em; /* Slightly smaller text if you like */
    }
}

@media (max-width: 600px) {
    .landing-content {
        max-width: 100vw;
        padding: 2vw 0.5vw;
        border-radius: 4px;
        font-size: 0.92em;
    }
}

/* Ensure images (like your slides) scale down responsively */
.panel-img, .landing-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* ---- Local theme tokens just for landing area ---- */
.landing {
    --brand: #00ffff;
    --muted: #aeb4cc;
    --shadow-1: 0 10px 26px rgba(0,0,0,.35);
}

    /* ---- Slideshow core (not fullscreen) ---- */
    .landing.slideshow {
        position: relative;
    }

        /* IMPORTANT: Do NOT force fullscreen; keep slides inside the panel */
        .landing.slideshow .panel {
            display: none;
            position: relative;
            margin: 0 auto;
            padding: 0;
        }

            .landing.slideshow .panel.active {
                display: grid;
                place-items: center;
                animation: slideFade .30s ease both;
            }

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Slide media (PNG images exported from PPT) ---- */
.landing.slideshow .panel-media {
    width: 100%;
    max-width: 1100px; /* tweak to taste */
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.landing.slideshow .panel-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    border: 1px solid rgba(255,255,255,.15);
}

/* ---- Prev/Next arrows ---- */
/* NAV ARROWS — stronger styling */
.landing.slideshow .nav-prev,
.landing.slideshow .nav-next {
    width: 50px;
    height: 50px;
    font-size: 26px;
    font-weight: 700;
    border-radius: 50%;
    color: #00FFFF; /* bright cyan to match SOURCE/TARGET theme */
    border: 2px solid rgba(110, 250, 255, 0.8);
    background: rgba(15, 20, 35, 0.55);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(110, 250, 255, 0.45);
    transition: 0.2s ease;
}

    .landing.slideshow .nav-prev:hover,
    .landing.slideshow .nav-next:hover {
        transform: scale(1.1);
        background: rgba(20, 30, 50, 0.7);
        box-shadow: 0 0 16px rgba(110, 250, 255, 0.75);
        color: #7ef3d1;
    }


/* ---- Dot navigation (right side) ---- */
.landing.slideshow .dotnav {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 10px;
    z-index: 10;
}

    .landing.slideshow .dotnav button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.5);
        background: rgba(255,255,255,.25);
    }

        .landing.slideshow .dotnav button.active {
            background: var(--brand);
            border-color: var(--brand);
        }

/* Remove keyboard focus outlines from the content card + slide panel only */
.landing-content,
.landing-content:focus,
.landing-content:focus-visible,
.landing-content:focus-within,
.landing.slideshow,
.landing.slideshow:focus,
.landing.slideshow:focus-visible,
.landing.slideshow .panel,
.landing.slideshow .panel:focus,
.landing.slideshow .panel:focus-visible,
.landing.slideshow .panel:focus-within,
.landing.slideshow .panel-media,
.landing.slideshow .panel-media:focus,
.landing.slideshow .panel-media:focus-visible,
.landing.slideshow .panel-img,
.landing.slideshow .panel-img:focus,
.landing.slideshow .panel-img:focus-visible {
    outline: none !important;
    border-color: transparent; /* in case any default border sneaks in */
}

/* Brand header sizes */
.brand-title {
    text-align: center;
    margin: 0 0 8px;
    font-size: clamp(28px, 5vw, 44px);
}

.brand-cyan {
    font-weight: 800;
    color: #00ffff;
}

.brand-to {
    font-style: italic;
    color: #AAB7B8;
    font-size: .6em;
    margin: 0 .35em;
    vertical-align: middle;
}

.brand-ai {
    color: #E5E4E2;
    font-size: .6em;
    vertical-align: super;
}



.landing-card {
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    max-width: 1200px;
    margin: 32px auto;
    padding: 12px 16px;
}

/* Autoplay controls */
.autoplay-ctrls {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 110;
    background: color-mix(in srgb, #0f1429 85%, transparent);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.autoplay-btn {
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #e7e9f4;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

.speed-label {
    color: #aeb4cc;
    font-size: .9rem;
}

.speed-select {
    margin-left: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: #e7e9f4;
    border: 1px solid rgba(255,255,255,.25);
    padding: 4px 6px;
}

/* Chatbot controls begin */

.cb-mainlayout {
    display: flex;
    flex-direction: row;    /* Explicit for clarity */
    height: 100vh;
    width: 100vw;
    min-width: 0;           /* <-- important for flex child sizing */
    background: #f4f4f8;
    /* overflow: hidden;   <-- optional, see note above */
}

.cb-leftpanel {
    width: 450px;
    min-width: 180px;
    max-width: 800px;
    background: #eef0f3;
    /*background: red;*/
    border-right: 2px solid #c3c8d0;
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.cb-files-title {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}
.cb-button-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}

.cb-btn {
    flex: 1; /* both grow equally */
    padding: 7px 0;
    background: #477bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
    text-align: center;
}

    .cb-btn:hover {
        background: #2650b8;
    }

.cb-upload-btn {
    margin-bottom: 14px;
    padding: 7px 0;
    background: #477bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
}

    .cb-upload-btn:hover {
        background: #2650b8;
    }
.cb-refresh-btn {
    margin-bottom: 14px;
    padding: 7px 0;
    background: #477bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
}

    .cb-refresh-btn:hover {
        background: #2650b8;
    }


.cb-file-list {
    list-style: none;
    padding: 0 0 12px 0;
    margin: 0;
    overflow-y: auto;
}

.cb-file-item {
    margin-bottom: 7px;
}

/* Context menu row container */
.cb-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    position: relative; /* So the context menu is positioned correctly */
}

/* Button grows/shrinks and ellipsizes name */
.cb-file-list-btn {
    flex: 1 1 auto;
    text-align: left;
    border: none;
    background: none;
    padding: 7px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s, font-weight 0.13s;
    min-width: 0;
    overflow: hidden;
    white-space: wrap;
    text-overflow: ellipsis;
}

    .cb-file-list-btn:hover{
        background: #d5e3ff;
        font-weight: bold;
    }

/* Context menu (three-dot) button */
.cb-file-menu-btn {
    margin-left: 5px;
    padding: 5px 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cb-file-menu-btn:hover {
        background: #dbeafe;
    }

    /* SVG icon sizing inside menu button */
    .cb-file-menu-btn svg {
        display: block;
        width: 20px;
        height: 20px;
        pointer-events: none;
    }

.cb-file-contextmenu {
    position: absolute;
    right: 18px;
    top: 100%;
    z-index: 9999;
    margin-top: -8px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(41,54,112,0.09);
    border: 1px solid #cfd6e6;
    border-radius: 6px;
    padding: 4px 0;
    min-width: 125px;
    font-size: 0.98rem;
    list-style: none;
}
.cb-file-list {
    overflow: visible !important;
}
.cb-file-contextmenu-up {
    top: auto !important;
    bottom: 20px;
    margin-top: 0;
    margin-bottom: 4px;
}

.cb-file-contextmenu li {
    padding: 8px 20px 8px 15px;
    cursor: pointer;
    transition: background 0.13s;
    white-space: nowrap;
}

    .cb-file-contextmenu li:hover {
        background: #dbeafe;
        color: #23497c;
    }


/* Divider (draggable) */
.cb-divider {
    width: 8px;
    background: #c3c8d0;
    cursor: ew-resize;
    /* For later: draggable resizing */
}

.cb-rightpanel {
    flex: 1 1 0%; /* Flex to fill all leftover space */
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow */
    height: 100vh; /* Matches left panel */
    box-sizing: border-box;
    padding: 24px 20px 20px 20px;
    background: #f4f4f8;
    overflow: hidden; /* Or auto, depending on chat scroll needs */
}

.cb-chat-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.cb-chat-window {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #d3d7de;
    border-radius: 7px;
    padding: 18px;
    margin-bottom: 0;
    box-shadow: 0 1px 5px rgba(41,54,112,0.05);
    word-break: break-word;
}

.cb-chat-msg {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
}

.cb-chat-sender {
    font-weight: 600;
    margin-right: 7px;
    color: #2c4276;
}

.cb-chat-text {
    flex: 1;
}

.cb-chat-time {
    font-size: 0.83em;
    color: #949ab5;
    margin-left: 10px;
}

.cb-chat-inputarea {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 12px;
    background: #f4f4f8;
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid #e1e4ea;
}

.cb-chat-input {
    flex: 1 1 0%;
    border-radius: 7px;
    border: 1px solid #a8b1c6;
    padding: 8px 12px;
    font-size: 1rem;
    outline: none;
    transition: border 0.14s;
    min-width: 0;
}

    .cb-chat-input:focus {
        border: 1.5px solid #477bff;
    }

.cb-send-btn {
    background: #477bff;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    padding: 0 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

    .cb-send-btn:disabled {
        background: #b3c5f5;
        cursor: not-allowed;
    }

    .cb-send-btn:hover:not(:disabled) {
        background: #2650b8;
    }

/* Fixes for panel stretching/scrolling */
.cb-mainlayout, .cb-leftpanel, .cb-rightpanel {
    height: 100%;
    min-height: 0;
}


.cb-file-list-name {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #e0e6f1;
    background: transparent;
    cursor: default;
    user-select: none;
    display: flex;
    align-items: center;
    height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .cb-file-list-name:hover {
        background-color: rgba(255, 255, 255, 0.07);
    }

    .cb-file-list-name.selected-file {
        background-color: rgba(255, 255, 255, 0.12);
        font-weight: 600;
    }

/* If you want perfect row alignment */
.cb-file-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Makes the filename button look like text, not clickable */
.cb-file-list-name-static {
    cursor: default !important; /* Regular arrow */
    
}

/* bottom status bar */
.cb-leftpanel-status {
    height: 34px; /* Matches cb-chat-input total height */
    line-height: 34px; /* Centers text vertically */
    padding: 0px 12px; /* Matches input horizontal padding */
    background: #dde2ea;
    border-top: 1px solid #c3c8d0;
    font-size: 1rem; /* Match input font size */
    color: #3a445a;
    border-radius: 7px; /* Same soft edges */
    flex-shrink: 0;
    box-sizing: border-box; /* Ensures borders/padding count cleanly */    
}
/*.cb-leftpanel-status {
    padding: 8px 10px;
    background: #dde2ea;
    border-top: 1px solid #c3c8d0;
    font-size: 0.9rem;
    color: #3a445a;
    flex-shrink: 0;
    border-radius: 7px;
}*/

.cb-file-list-container {
    flex: 1 1 auto;
    padding: 0 0 12px 0;
    overflow-y: auto;
    min-height: 0; /* REQUIRED for flexbox scrolling to work */
}


/* === Chat panel layout === */

.cb-rightpanel {
    /* Inline styles already set height and flex; this is just support if you move inline later */
    display: flex;
    flex-direction: column;
    background-color: #f7f8fb;
}

.cb-chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Row alignment: user vs AI */

.cb-chat-row {
    display: flex;
    margin-bottom: 4px;
}

.cb-chat-row-user {
    justify-content: flex-end;
}

.cb-chat-row-ai {
    justify-content: flex-start;
}

/* Bubbles */

.cb-chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    font-size: 0.9rem;
    line-height: 1.4;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    word-wrap: break-word;
    white-space: pre-wrap; /* preserve line breaks in long messages */
}

.cb-chat-bubble-user {
    background-color: #e1ecff;
    border-color: #c3d4ff;
}

.cb-chat-bubble-ai {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

/* Sender + timestamp */

.cb-chat-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: #6b7280;
}

.cb-chat-sender {
    font-weight: 600;
}

.cb-chat-time {
    font-style: italic;
}

/* Message text */

.cb-chat-text {
    font-size: 0.9rem;
}

/* Empty state */

.cb-chat-empty-hint {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

/* Input area */

.cb-chat-inputarea {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #d1d5db;
    background-color: #f9fafb;
}

.cb-chat-input.cb-chat-input-multiline {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    resize: vertical;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    outline: none;
}

    .cb-chat-input.cb-chat-input-multiline:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
    }


.cb-send-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #2563eb;
    color: #ffffff;
}

    .cb-send-btn[disabled] {
        opacity: 0.6;
        cursor: default;
    }


.cb-file-selected {
    background-color: #dbeafe !important; /* Light blue */
    border-radius: 6px;
    font-weight: 600;
    color: #1e3a8a; /* Darker navy text */
}

.cb-keyword-filter-container {
    padding: 0.5em 0.5em 0.75em 0.5em;
    border-top: 1px solid #e4e8f0;
    background: #fafdff;
    min-height: 38px;
    font-size: 1em;
}

.cb-filter-chip {
    display: inline-block;
    background: #e8f3ff;
    color: #354b6b;
    border-radius: 1em;
    padding: 0.18em 0.9em 0.18em 0.7em;
    font-size: 0.97em;
    margin: 0 0.4em 0.4em 0;
    border: 1px solid #a9c9f7;
    position: relative;
    transition: background 0.2s, border 0.2s;
    vertical-align: middle;
}

    .cb-filter-chip:hover {
        background: #d8eafd;
        border-color: #7ab0f7;
    }

.cb-chip-x {
    margin-left: 0.35em;
    border: none;
    background: transparent;
    color: #4673b2;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    outline: none;
    padding: 0;
    transition: color 0.15s;
    vertical-align: middle;
}

    .cb-chip-x:hover {
        color: #bc1717;
    }

.cb-keyword-filter-container {
    margin-top: 1.25em;
    padding: 0.75em 1em 1em 1em;
    border-radius: 0.7em;
    border: 1px solid #e4e8f0;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(90,102,128,0.06);
    display: flex;
    flex-wrap: wrap; /* THIS lets chips/input wrap onto new lines */
    align-items: center;
    gap: 0.5em 0.5em;
    min-height: 2.7em; /* Initial height for aesthetics */
    max-height: none; /* Unlimited growth; container grows as needed */
    overflow: visible; /* Show all rows; no scrollbars */
    transition: box-shadow 0.13s;
}

.cb-keyword-filter-container input[type="text"],
.cb-keyword-filter-container input:not([type]) {
    min-width: 110px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.23em 0.2em;
    font-size: 1em;
    vertical-align: middle;
}

    .cb-keyword-filter-container input[type="text"]:focus {
        background: #f0f5ff;
        border-radius: 0.3em;
    }


/* Chatbot controls end */


.vellma-hero {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.vellma-hero-box {
    background: rgba(0, 0, 0, 0.35);
    padding: 40px 50px;
    border-radius: 16px;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.vellma-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #E5E4E2;
}

.vellma-accent {
    color: #00FFFF;
    font-weight: 700;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.vellma-subtitle {
    font-size: 20px;
    line-height: 1.4;
    color: #E5E4E2;
    margin-bottom: 25px;
}

.vellma-tagline {
    font-size: 18px;
    color: #AAB7B8;
    margin-bottom: 35px;
}


.cb-keyword-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-keyword-search-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cb-spinner {
    width: 28px;
    height: 28px;
    border: 4px solid #cfd6e4;
    border-top-color: #3a5fc8;
    border-radius: 50%;
    animation: cb-spin 0.8s linear infinite;
}

@keyframes cb-spin {
    to {
        transform: rotate(360deg);
    }
}

.cb-keyword-search-text {
    font-size: 13px;
    color: #2f3b52;
}


