﻿body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%; /* Ensures it stretches across the screen */
    margin: 0; /* Removes any automatic margin */
    padding: 10px; /* push things a bit to the right on the page */
    line-height: 1.6;
}

/* Form controls don't inherit the page font by default: textareas fall back
   to monospace, buttons and selects to the system UI font. Make them match. */
button, input, select, textarea {
    font-family: inherit;
}


.upload-drop-area:hover {
    border-color: #2c5aa0;
    background-color: #f8f9fa;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container {
    text-align: center;
    padding: 20px;
}

.simple-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

.sections-container {
    display: flex; /*setting this to block limits the width*/
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px; /* Optional: Adds padding inside the content area */
}

.section {
    flex: 1;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    min-width: 0; /* Prevents flex items from overflowing */
}

.section-title {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    white-space: nowrap;
}

.sub-header {
    font-size: 18px;
    color: #34495e;
    margin: 15px 0;
    font-weight: bold;
}

.columns-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.column {
    flex: 1;
}

.item-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .item-list li {
        padding: 8px 0;
        border-bottom: 1px solid #ddd;
    }

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .sections-container {
        flex-direction: column;
    }

    .section {
        margin-bottom: 20px;
    }
}

.item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.item-row-smaller {
    display: block;
    margin-bottom: 10px;
    max-width: 200px;
}

.label {
    flex: 1; /* Takes up equal space */
}

.headingx {
    font-weight: bold;
    flex: 1; /* Takes up equal space */
}

.value {
    flex: 1; /* Takes up equal space */
}

.bold-label .checkbox-control {
    font-weight: bold;
}

.styled-button {
    font-size: 1.5rem;
    padding: 12px 24px;
    margin-left: 20px; /* Adds space on the left of the button */
    border-radius: 12px; /* Rounds the corners */
    width: 150px; /* Optional for width */
    height: 50px; /* Optional for height */
}

/* Make the table span across the full width */
.full-width-section {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid black;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

a {
    color: blue;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    text-decoration: underline;
}

    a:hover {
        text-decoration: underline;
    }
h4 {
    color: rgba(0, 0, 0, 0.87);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
}

.help-text {
    color: #6c757d;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: 0.5rem;
    display: block;
}

/*login page stuff*/
/* Flexbox container to center the form on the page */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

    .login-container .e-card {
        height: auto;
        min-height: fit-content;
    }

.login-form {
    width: 100%;
    max-width: 400px; /* Restrict the form width */
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.login-button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}


.btn-primary {
    width: 100%;
    padding: 0.5rem;
    margin-top: 1rem;
}

/* Custom small button style */
.btn-small {
    padding: 0.25rem 0.5rem; /* Adjust padding for smaller size */
    font-size: 0.8rem; /* Smaller font size */
    line-height: 1rem;
}

.btn-small-primary {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.btn-small-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
}

.btn-small-primary:hover {
    background-color: #0056b3;
}

.btn-small-danger:hover {
    background-color: #c82333;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content within container to the left */
    width: 300px; /* Set a fixed width for the form */
    padding: 2rem;
    background-color: #ffffff; /* Optional: background color */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: shadow effect */
    margin-left: 1rem; /* Optional: adds some spacing from the left edge of the page */
}

.search-criteria-container {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

    .search-criteria-container legend {
        font-weight: bold;
        padding: 0 10px;
        color: #333;
    }

.search-container {
    display: flex;
    align-items: center; /* Centers items vertically */
    gap: 10px; /* Space between the dropdown and button */
}

    .search-container .item-row {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

.search-button {
    height: 38px; /* Match the height with the multi-select */
    padding: 0 15px;
    display: flex;
    align-items: center; /* Center the text vertically */
    flex-shrink: 0; /* Prevent the button from resizing */
}

.grid-container {
    height: calc(100vh - 100px); /* Adjust based on navbar/footer */
    overflow: hidden; /* Ensures scrolling is within the grid */
}



.sf-grid {
    height: 100%; /* Makes the grid fill its container's height */
}

.badge {
    padding: 0.4em 0.8em;
    font-size: 0.875em;
    border-radius: 0.25rem;
}

.badge-ready {
    background-color: #28a745;
    color: white;
}

.badge-processed {
    background-color: #007bff;
    color: white;
}

.badge-failed {
    background-color: #dc3545;
    color: white;
}

/* Modal window */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%; /* Increase width */
    max-width: 720px; /* Adjust maximum width */
    height: 80%; /* Add height */
    max-height: 90%; /* Ensure it doesn’t overflow the viewport */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex; /* Ensure content alignment */
    flex-direction: column; /* Stack header and body vertically */
}

.custom-modal-header {
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-title {
    margin: 0;
}

.custom-modal-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.custom-modal-body {
    flex: 1; /* Allow body to grow and take available space */
    overflow: hidden; /* Disables the scrollbar as we'll use the one on the modal page */
}

    .custom-modal-body iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.custom-close-button {
    font-size: 1rem; /* Slightly smaller text */
    padding: 8px 16px; /* Adjust button padding */
    width: auto; /* No longer full width */
    max-width: 150px; /* Slightly smaller */
    display: block;
    margin: 10px auto; /* Center the button */
}

/* Footer */
.page-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 10px;
    display: flex;
    justify-content: flex-end; /* Align content to the right */
    align-items: center; /* Vertically center */
    overflow: hidden; /* Prevents horizontal scrolling */
}

.powered-by {
    margin: 0; /* Remove default margin */
    margin-right: 10px; /* Spacing between text and logo */
    font-size: 12px; /* Adjust font size (default h3 is ~24px) */
}

.page-footer img {
    height: 40px;
    margin-right: 20px; /* Adds spacing from the edge */
}

/* Project Detail */
.response-card {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
}

.response-header {
    color: #2C3E50;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.response-content {
    font-size: 1.1rem; /* Keep standard size for latest response */
    line-height: 1.8;
    color: #34495E;
    padding: 20px;
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Smaller font for history */
.history-content {
    font-size: 0.9rem; /* Reduce font size */
    line-height: 1.6;
    color: #555;
    padding: 15px;
    white-space: pre-wrap;
}

.chat-history {
    max-width: 800px;
    margin: 20px auto;
}
.spacing-right {
    margin-right: 16px; /* Explicit pixel value */
    /* or */
    /* margin-right: 1rem; */ /* If you prefer rem units */
}

/*Upload*/
.custom-button {
    padding: 6px 12px;
    font-size: 1rem;
    min-width: 110px;
}

/*Edit profile*/
.page-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.password-requirements {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

    .password-requirements ul {
        padding-left: 20px;
        margin: 5px 0;
    }

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
