/* Light mode styles */

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF; /* Light background */
    color: #121212; /* Dark text color */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.login-form {
    background-color: #F5F5F5; /* Light background for form */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #121212; /* Dark text color */
}

.login-form label {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: #757575; /* Dark text color for labels */
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #CCCCCC; /* Light border */
    border-radius: 5px;
    background-color: #FFFFFF; /* Light background for input */
    color: #121212; /* Dark text color */
}


.error-message {
    color: #D32F2F; /* Dark red for error messages */
    text-align: center;
}

.container {
    position: relative;
    background-color: #F5F5F5; /* Light background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 40px;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.logo {
    width: 150px;
    height: auto;
}

h1 {
    text-align: center;
    color: #121212; /* Dark text color */
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #357ABD;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

button:hover {
    background-color: #0CCFCF;
}

.column-group button {
    background-color: #B0BEC5; /* Light background */
}

#taskType {
    background-color: #fff;
    border: solid;
    border-color: #888;
    outline: hsla(0, 0%, 13%, 1);
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

/* Container to align items to the top right */
.header-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
    gap: 10px;
}


/* Style for Settings Dropdown */
.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-button {
    background-color: #FFFFFF; /* Light background color */
    color: #121212; /* Dark text color */
    border: solid; /* Remove default border */
    border-color: #CCCCCC;
    padding: 10px 20px; /* Padding for the button */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size for button text */
    display: flex;
    align-items: center;
}

.settings-button::after {
    content: '▼'; /* Downward arrow */
    margin-left: 10px; /* Space between text and arrow */
    font-size: 12px; /* Smaller arrow size */
}

.settings-dropdown-content {
    display: none; /* Hide dropdown by default */
    position: absolute; /* Position dropdown relative to the button */
    right: 0; /* Align to the right */
    background-color: #FFFFFF; /* Light background color */
    min-width: 200px; /* Minimum width for dropdown */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Box shadow for dropdown */
    z-index: 1; /* Ensure dropdown is above other elements */
    border-radius: 8px; /* Rounded corners for dropdown */
    overflow: hidden; /* Prevent overflow */
}

.settings-dropdown-content a {
    color: #121212; /* Dark text color */
    padding: 12px 16px; /* Padding for links */
    text-decoration: none; /* Remove underline from links */
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Center items vertically */
    gap: 10px; /* Space between icon and text */
}

.settings-dropdown-content a:hover {
    background-color: #EEEEEE; /* Light background color on hover */
}

.settings-dropdown:hover .settings-dropdown-content {
    display: block; /* Show dropdown on hover */
}

/* Icon styles */
.settings-dropdown-content a .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.settings-dropdown-content a .icon.upload {
    background: url('/images/icon_upload.png') no-repeat center center / contain; /* Replace with your upload icon URL */
}

.settings-dropdown-content a .icon.switch {
    background: url('/images/icon_switch.png') no-repeat center center / contain; /* Replace with your switch icon URL */
}

h2, .info-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Style for tenant switch modal */
#tenantModal .modal-content {
    max-width: 400px;
    padding: 20px;
    text-align: center;
    background-color: #FFFFFF; /* Light background */
    color: #121212; /* Dark text color */
}

#tenantList {
    list-style-type: none;
    padding: 0;
}

#tenantList li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #CCCCCC; /* Light border */
}

#tenantList li:hover {
    background-color: #EEEEEE; /* Light hover color */
}

/* Current tenant style */
.current-tenant {
    color: #0CCFCF; /* Same blue color */
    padding: 12px 16px; /* Same padding as other items */
    text-align: center; /* Center text */
    cursor: default; /* Default cursor, making it unclickable */
}

.content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 30%;
    margin: 20px;
}

label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #757575; /* Dark text color for labels */
}

input, textarea {
    padding: 10px;
    border: 1px solid #CCCCCC; /* Light border */
    border-radius: 5px;
    background-color: #FFFFFF; /* Light background for input */
    color: #121212; /* Dark text color */
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    font-family: 'Roboto';
}

input[type="checkbox" i] {
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    width: fit-content;
    margin-right: 10px;
    margin-left: 0;
    padding: initial;
    border: initial;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

#result {
    width: 70%;
    padding: 20px;
    background-color: #FFFFFF; /* Light background */
    border: 1px solid #CCCCCC; /* Light border */
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    position: relative;
    color: #121212; /* Dark text color */
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Roboto Mono', monospace;
    width: 100%;
}

.btn-primary {
    background-color: #357ABD;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #0CCFCF;
}

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

.modal-content {
    background-color: #FFFFFF; /* Light background */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #CCCCCC; /* Light border */
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

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

.template-card {
    padding: 15px;
    background-color: #FFFFFF; /* Light background */
    border: 1px solid #CCCCCC; /* Light border */
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    text-align: center;
    transition: background-color 0.3s;
    color: #121212; /* Dark text color */
}

.template-card:hover {
    background-color: #EEEEEE; /* Light hover color */
}

/* Loader styles */
.loader {
    margin-top: 50px;
    border: 16px solid #FFFFFF; /* Light border */
    border-radius: 50%;
    border-top: 16px solid #4A90E2;
    border-right: 16px solid #50E3C2;
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    display: none;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tab styles */
.tabs {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.tablink {
    background-color: #EEEEEE; /* Light background */
    color: #121212; /* Dark text color */
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 50%;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.tablink:hover {
    background-color: #CCCCCC; /* Light hover color */
}

.tablink.active {
    background-color: #4A90E2;
    color: white;
}

.tabcontent {
    width: 100%;
    display: none;
}

.tabcontent h2 {
    margin-top: 0;
    color: #121212; /* Dark text color */
}

.tabcontent.active {
    display: block;
}

/* Add these styles to your existing styles.css */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-top: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCCCCC; /* Light background color */
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4A90E2;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #121212; /* Dark text color */
}

table, th, td {
    border: 1px solid #CCCCCC; /* Light border */
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #4A90E2;
    color: white;
}

.cost-container {
    position: absolute;
    left: 20px;
    bottom: 20px;
    right: 20px;
    background-color: #F5F5F5; /* Light background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: auto;
}

.cost-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cost-container th, .cost-container td {
    border: 1px solid #CCCCCC; /* Light border */
    padding: 8px;
    text-align: left;
}

.cost-container th {
    background-color: #4A90E2;
    color: white;
}

.message {
    margin-top: 10px;
    color: green;
}

.message.error {
    color: red;
}

/* Accordion styles */
.accordion {
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

.accordion-button {
    background-color: #CCCCCC; /* Light background color */
    color: #121212; /* Dark text color */
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    margin: inherit;
}

.accordion-button:hover,
.accordion-button.active {
    background-color: #0CCFCF;
}

.accordion-content {
    padding: 0 10px;
    display: none;
    overflow: hidden;
    background-color: #F5F5F5; /* Light background */
    border-top: 1px solid #CCCCCC; /* Light border */
}

.accordion-content pre {
    margin: 10px 0;
    color: #121212; /* Dark text color */
}

.json-item {
    margin-left: 20px;
}

.json-key {
    font-weight: bold;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border-bottom: 1px solid #CCCCCC; /* Light border */
    display: flex;
    justify-content: space-around;
    width: 100%;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: #4A90E2;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    width: 50%;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #357ABD;
}

/* Ensure the toggle and label are aligned */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.toggle-label {
    margin: 0;
    font-weight: 500;
    color: #121212; /* Dark text color */
}

.reverse-toggle-group {
    flex-direction: row-reverse;
}

/* Make the label and toggle smaller */
.reverse-toggle-group .switch {
    transform: scale(0.8); /* Adjust the scale as needed */
}

.small-toggle-label {
    font-size: 0.8em; /* Adjust the font size as needed */
    color: #888; /* Lighter text color to make it less dominant */
    font-family: 'circular';
}

.column-selection {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.column-group {
    width: 48%;
    background-color: #CCCCCC; /* Light background */
    padding: 5px;
    border: solid;
    border-color: #EEEEEE; /* Light border */
}

.checkbox-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    padding: 5px;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #121212; /* Dark text color */
}

.checkbox-container label input[type="checkbox"] {
    margin-right: 10px;
    margin-left: 0; /* Ensure checkboxes are fixed to the left */
    position: relative;
    left: 0; /* Reset any user-agent styles */
    width: 15px;
    height: 15px;
}

.checkbox-container label input[type="checkbox"]:checked {
    margin-right: 10px;
    margin-left: 0; /* Ensure checkboxes are fixed to the left */
    position: relative;
    left: 0; /* Reset any user-agent styles */
    width: 15px;
    height: 15px;
    background-color: #CCCCCC; /* Light background */
}

/* Format Instructions  */
.hidden {
    display: none;
}

.enum-category, .enum-boolean, .enum-integer {
    margin-top: 20px;
    color: #121212; /* Dark text color */
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px; /* Space between the pairs */
}

.category-name {
    flex: 1;
}

.category-description {
    flex: 4;
}

.value-description-pair {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the inputs */
    margin-bottom: 10px; /* Space between the pairs */
}

.value-description-pair input[type="number"] {
    flex: 1;
    background-color: #FFFFFF; /* Light background */
    color: #121212; /* Dark text color */
    border: 1px solid #CCCCCC; /* Light border */
}

.value-description-pair input[type="text"] {
    flex: 4;
    background-color: #FFFFFF; /* Light background */
    color: #121212; /* Dark text color */
    border: 1px solid #CCCCCC; /* Light border */
}

#type {
    background-color: #CCCCCC; /* Light background */
    border: solid;
    border-color: #EEEEEE; /* Light border */
    outline: hsla(0, 0%, 90%, 1);
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
    width: 20%;
    margin-top: 10px;
    color: #121212; /* Dark text color */
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.format-container {
    background: linear-gradient(135deg, #CCCCCC, #EEEEEE); /* Light gradient */
    padding: 20px;
    border-radius: 10px;
    color: #121212; /* Dark text color */
}

.format-container label input[type="text"] {
    margin-top: 10px;
}

#addCategoryButton {
    flex-shrink: 0;
    padding: 0 12px;
    height: 38px; /* Adjust height to match input fields */
    border: none;
    background-color: #357ABD;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

#addCategoryButton:hover {
    background-color: #0CCFCF;
}

#custom-format {
    margin-top: 10px;
    font-size: 14px; 
}

/* CSS Evaluation  */

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

.modal-content {
    background-color: #e9f2fd;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #CCCCCC;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Evaluation Score styles */
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #FFFFFF;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #CCCCCC;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Evaluation Score styles */
.score-container {
    display: flex;
    align-items: center;
}

.donut-chart {
    width: 150px;
    height: 150px;
    margin-right: 20px;
}

.circular-chart {
    width: 100%;
    height: auto;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease 0s, stroke 0.6s ease;
}

.percentage {
    fill: #333;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 600;
}

.score-details {
    width: 100%;
}

.score-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.score-icon {
    width: 20px;
    margin-right: 10px;
}

.score-label {
    flex: 1;
    margin: 5px;
    font-weight: 600;
    color: #2b3d52;
}

.score-bar {
    width: 50%;
    height: 10px;
    background-color: #eee;
    margin-right: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.score-value {
    width: 30px;
    text-align: right;
}

.contextual_accuracy .score-bar-fill { background-color: #4caf50; } /* Green */
.clarity .score-bar-fill { background-color: #673ab7; } /* Deep Purple */
.personalization_quality .score-bar-fill { background-color: #e91e63; } /* Pink */
.prompt_clarity .score-bar-fill { background-color: #ffeb3b; } /* Yellow */
.prompt_specificity .score-bar-fill { background-color: #00bcd4; } /* Cyan */



.score-value:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
    bottom: 150%;
}

.score-value:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    bottom: 140%;
}

/* Add a loader style */
.btn-loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 12px;
    height: 12px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.collapsible {
    background-color: #007BFF;
    color: #FFFFFF;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 15px;
    border-style: solid;
}

.active, .collapsible:hover {
    background-color: #0056b3;
}

.content-evaluator {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #fff;
    border-radius: 5px;
}

.score-fix {
    margin-top: 5px;
    color: #333;
    font-weight: bold;
}

.info-icon {
    margin-left: 10px;
    cursor: pointer;
    color: #007bff;
}
.tooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: 1%;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 250px;
}
.tooltip p {
    margin: 0 0 10px 0;
}
.tooltip button {
    margin-right: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.show-me-how {
    background-color: #28a745;
    color: white;
}
.dismiss {
    background-color: #f8f9fa;
    color: #333;
}