:root {
    --primary-color: #bb2d4d;
    --background-color: #056b82;
    --text-color: #FFF;
    --main-content-background: #033540;
    --button-hover-color: #03496d;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* Prevent scrolling on the whole page */
}

h1 {
    color: var(--text-color);
}

.container {
    display: flex;
    height: calc(100% - 90px); /* Adjust for header and footer */
    width: 100%; /* Cover full available width */
    overflow: hidden; /* Prevent scrolling within the container */
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--main-content-background);
    width: 180px; /* Adjusted width for a more compact design */
    flex-shrink: 0; /* Prevents the sidebar from shrinking */
    overflow-y: auto; /* Allows vertical scrolling if content overflows */
    padding: 10px; /* Adds padding inside the sidebar for better spacing */
}

/* Link/Button Styling in the Sidebar */
.tab-link {
    display: block;
    padding: 8px 10px; /* Slightly reduced padding for a more compact look */
    margin: 5px 0; /* Space between buttons */
    background-color: #03496d; /* Maintains original color */
    color: white; /* Ensures text is white */
    text-align: left; /* Aligns text to the left */
    text-decoration: none; /* Removes underline from links */
    border-radius: 4px; /* Rounded corners for the buttons */
    transition: transform 0.3s; /* Smooth transition for hover effect */
}

.tab-link:hover, .tab-link:focus {
    transform: translateX(5px); /* Moves button to the right on hover/focus */
    text-decoration: none; /* Ensures text is not underlined on hover */
}

.tab-link.active {
    background-color: var(--primary-color); /* Red color for active state */
    color: white; /* Ensures text is white in active state */
}

/* Icon styles for better visual cues */
.icon {
    margin-right: 5px; /* Space between icon and text */
    vertical-align: middle; /* Align icon with text */
}


.main-content {
    flex-grow: 1; /* Take remaining space */
    padding: 20px;
    background-color: var(--background-color);
    overflow-y: auto; /* Allow content to scroll inside main content */
    min-width: 0; /* Fixes flexbox overflow issues in some browsers */
}


.header, .footer {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 20px;
}

.form-container {
    display: flex;
    gap: 15px;
    background-color: var(--main-content-background);
    padding: 20px;
    border-radius: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex-basis: calc(50% - 15px);
    margin-bottom: 15px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

select, input[type="text"] {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.vertical-line {
    border-left: 2px solid #bbb;
    height: 60px;
    margin: 20px 0;
}


button, #category-edit-button, #run-config-edit-button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, #category-edit-button:hover, #run-config-edit-button:hover {
    background-color: var(--button-hover-color);
}

.tab {
    display: flex;
    flex-direction: column;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #333; /* Dark theme for the table */
    color: #fff; /* White text color for readability */
}

th, td {
    padding: 10px;
    border: 1px solid #bbb; /* Light grey border for each cell */
}

textarea {
    width: 95%; /* Slightly less than full width for padding */
    padding: 5px; /* Comfortable padding inside input and textarea */
    border-radius: 4px;
    height:60px; /* Rounded corners for input fields */
}

input {
    padding: 5px; /* Comfortable padding inside input and textarea */
    border-radius: 4px;
}

.scrollable-checkboxes {
    height: 150px; /* Limit height to create a scrolling area */
    overflow-y: auto; /* Enable vertical scrolling */
    border: 1px solid #ccc; /* Add a subtle border */
    padding: 10px;
    margin-top: 5px;
    background-color: #f8f8f8; /* Light background for the area */
    border-radius: 5px; /* Rounded corners */
}

/* Improved checkbox styling */
input[type="checkbox"] {
    margin-right: 10px;
    align: center;
}

/* Label placement next to the checkbox */
label {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}


.logo {
    height: 50px;
    border-radius: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    max-width: 95%;
    min-height: 40vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
}

.info-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.4);
        z-index: 1000;
}

.info-modal-content {
        background-color: #fefefe;
        padding: 20px;
        border: #060623;
        border-width: 2px;
        border-radius: 25px;
        width: 350px;
        margin: 15% auto;
        text-align: center;
    }

.info-modal-actions {
        margin-top: 20px;
        display: inline-flex;
}

.info-modal-actions button {
    margin: 0 10px;
}


.input-field {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
    box-sizing: border-box;
    resize: none;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.footer {
    padding: 20px;
    text-align: center;
    background: var(--primary-color);
}
.fbeta-logo{
    width: 50px;
    height: 25px;
}

/* Heat Map */
.very-low { background-color: hsl(0, 100%, 40%); }      /* was #ff0000 */
.low { background-color: hsl(20, 100%, 40%); }         /* was #ff4000 */
.below-average { background-color: hsl(30, 100%, 40%); } /* was #ff8000 */
.average-low { background-color: hsl(45, 100%, 40%); } /* was #ffbf00 */
.average { background-color: hsl(60, 100%, 40%); }     /* was #ffff00 */
.average-high { background-color: hsl(75, 100%, 40%); } /* was #bfff00 */
.above-average { background-color: hsl(90, 100%, 40%); } /* was #80ff00 */
.high { background-color: hsl(120, 100%, 40%); }       /* was #40ff00 */
.very-high { background-color: hsl(120, 100%, 40%); }  /* was #00ff00 */


/* Main Page Styling */
.main-body {
    font-family: 'Arial', sans-serif;
    background-color: var(--main-content-background);;
    color: #333;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main-logo-container {
    cursor: pointer;
    text-decoration: none;
}

.main-logo-container a {
    text-decoration: none;
    color: inherit;
}

.main-welcome-text {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Base Page Styling */
.base-body {
    font-family: 'Arial', sans-serif;
    background-color: var(--main-content-background);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
}

.base-container {
    background-color: white;
    padding: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center; /* This ensures that all children are centered horizontally */
    text-align: center;
    gap: 20px; /* Maintain spacing between elements */
}

.base-link {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    color: white;
    background-color: var(--primary-color);
    transition: background-color 0.3s;
}

.base-link:hover {
    background-color: var(--button-hover-color);
}

.base-description {
    color: #777;
    font-size: 16px;
}

/* Upload-file-Mapping section styles */

#mappingSection {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 20px;
}

#headersContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#headersContainer div {
    display: flex;
    flex-direction: column;
}

#headersContainer label {
    font-weight: bold;
    margin-bottom: 5px;
}

#headersContainer select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    color: #333;
}

.finalize-button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.finalize-button:hover {
    background-color: var(--button-hover-color);
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 16px;
    margin: 0 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:hover {
    background-color: var(--button-hover-color);
}

.pagination span {
    color: var(--text-color);
    font-size: 16px;
}
