/* General Styling */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Header - REMOVED (now in header.css) */
/* .header-container - REMOVED (now in header.css) */
/* .logo - REMOVED (now in header.css) */
/* .user-profile - REMOVED (now in header.css) */
/* .user-profile a - REMOVED (now in header.css) */
/* .token-display - REMOVED (now in header.css) */

/* Main Content Layout */
main {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ------------------------------------------------------------------
   Enhanced Solution Boxes
   ------------------------------------------------------------------ */

   .solution-box {
    background-color: #fff;
    position: relative;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(3, 109, 207, 0.04) 0,
        rgba(3, 109, 207, 0.04) 1px,
        transparent 1px,
        transparent 6px
    );
    background-size: 7px 7px;

    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.solution-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: #f9fafb;
}

.solution-box img {
    width: 60px;
    height: 60px;
    cursor: pointer;
    margin-bottom: 1px;
}

.solution-box h2 {
    margin: 10px 0 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.solution-box p.note {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #6c757d;
}

.solution-box button {
    width: 80px;
    height: 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.solution-box button:hover {
    background-color: #0056b3;
}

/* login error message */
.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* ------------------------------------------------------------------
   Boxes / Containers for Various Sections
   (Removed .solution-box from this combined rule to avoid conflicts)
   ------------------------------------------------------------------ */
.box, .login-container, #tokenForm, form#accessForm {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* batchupdate progress box */
#progressBox {
    width: 100%;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
}

/* token generator styles */
#bearerToken {
    width: 50%;
    resize: none;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 10px;
    color: #333;
    font-size: 12px;
}

#copyTokenButton {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

#copyTokenButton:hover {
    background-color: #0056b3;
}

/* Section for options */
.options-container {
    background-color: #fdfdfd;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: auto;
    padding: 15px;
    height: auto;
    margin-right: 20px;
}

.options-container .section-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin-right: 20px;
}

.options-container .section {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    grid-template-columns: repeat(2, 1fr);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 10px;
    width: 50%;
    flex: 1 0 calc(50% - 20px);
}

#resultsContainer {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 10px;
    height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
}

#resultsContainer > div {
    margin-top: 10px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

/* Style the main output container */
#outputContainer {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#resultsContainer {
    background-color: #000;
    color: #fff;
    padding: 10px;
    height: 50vh;
    overflow-y: scroll;
    white-space: pre-wrap;
}

/* Style the main output container */
#outputContainer2 {
    width: 40%;
    height: auto;
    display: static;
    flex-direction: column;
    gap: 10px;
}

#resultsContainer2 {
    background-color: #000;
    width: 200%;
    color: #fff;
    padding: 10px;
    height: 100vh;
    overflow-y: auto;
    white-space: pre-wrap;
}

#templateDownload, #errorCodesReference {
    padding: 5px;
    border-radius: 5px;
    width: 90%;
}

#templateDownload a {
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
}

#templateDownload a::before {
    content: "Click Here";
    text-decoration: underline;
}

#templateDownload a,
#errorCodesReference p {
    font-size: 12px;
    color: #555;
}

/* Underscore only "Click Here" */
#templateDownload a {
    text-decoration: none;
}
#templateDownload a::before {
    content: "Click Here";
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}

.note {
    font-size: 12px;
}

.file-button {
    margin-left: 10px;
}

.custom-line {
    height: 2px;
    width: 300px;
    background-color: #ccc;
    margin: 0 auto;
}

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

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table th {
    background-color: #f2f2f2;
    color: black;
}

.table td input[type="checkbox"] {
    margin-right: 10px;
}

.section {
    padding-bottom: 20px;
}

body {
    padding-bottom: 50px;
}

/* Error and Disclaimer Messages */
.error-message, .disclaimer {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    margin-top: 20px;
}

/* Error and Disclaimer Messages */
.error-message, .info-message {
    text-align: left;
    color: #6c757d;
    font-size: 12px;
}
.index-page header {
    /* REMOVED (now in header.css) */
}

.index-page .credentials {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 50px auto;
    text-align: center;
}

.index-page input[type="text"],
.index-page input[type="password"] {
    width: calc(60% - 20px);
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.index-page .disclaimer {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

.index-page button {
    width: 50%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
}

.index-page button:hover {
    background-color: #0056b3;
}

/* token page code */
.token-page header {
    /* REMOVED (now in header.css) */
}

.token-page .solution-box {
    width: 50%;
    height: auto;
    font-size: 12px;
    max-width: 500px;
    padding: 30px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

/* Add equal padding and width for all form elements */
form input, form select, form button {
    width: auto;
    padding: 10px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

/* Adjust the width and spacing of the dropdown */
#instanceDropdown {
    width: 75%;
    padding: 10px;
    margin-bottom: 5px;
}

.token-page input[type="text"],
.token-page input[type="password"],
.token-page input[type="datafield"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.token-page button {
    width: 50%;
    padding: 15px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    margin-top: 10px;
    line-height: 1px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.token-page button:hover {
    background-color: #0056b3;
}

.token-container, .upload-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 80% auto;
    text-align: center;
}

.upload-container textarea {
    width: 100%;
    height: 150px;
}

/* Style for the status indicator circle */
.inactive-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    margin-right: 8px;
}

.active-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    margin-right: 8px;
}

#tokenStatusContainer {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.token-status {
    font-weight: normal;
    font-size: small;
}

.options-container .bearer {
    background-color: #f0efee;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 10px;
    width: calc(100% - 0px);
    padding-bottom: 15px;
}

/* style for batchupdate */
input[type="text"], input[type="file"], textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"], button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover, button:hover {
    background-color: #45a049;
}

header {
    /* REMOVED (now in header.css) */
}

.center-container {
    width: 50%;
    padding: 35px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.token-container, .update-method, .upload-container {
    width: 100%;
    margin: 0px 0;
}

input[type="text"], input[type="file"], textarea, button {
    width: 90%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#progressBox {
    height: 250px;
    width: 90%;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 150px;
}

button:hover {
    background-color: #0056b3;
}

footer {
    width: 100%;
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 0px;
    position: fixed;
    bottom: 0;
}

/* The following code regulates how the Bearer Token displays in headers - REMOVED (now in header.css) */
/* ============================================= */
/* 1. Existing token-status positioning in header - REMOVED (now in header.css) */
/* 2. Inline span wrapper for status dot + text - REMOVED (now in header.css) */
/* 3. Active/inactive text color (may override white if needed) - REMOVED (now in header.css) */
/* 4. Status dot sizing & colors - REMOVED (now in header.css) */
/* 5. Concept‐toggle styling (small and unobtrusive) - REMOVED (now in header.css) */
/* ========Game Over ========== */


/* idea center */
.idea-box {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.idea-details {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    display: none;
}

.idea-form, .idea-list {
    background: white;
    padding: 5%;
    border-radius: 8px;
    box-shadow: 0px 0px 5px gray;
}

.idea-form {
    width:90%;
}

.idea-list {
    width: 100%;
}

.icon {
    font-size: 16px;
    cursor: pointer;
    margin: 0 8px;
}
.view-icon { color: blue; }
.upvote-icon { color: green; }
.downvote-icon { color: red; }
.edit-icon { color: orange; }
.delete-icon { color: gray; }

.icon:hover {
    opacity: 0.7;
}

/* CSV conversion and entry box */
.text-box {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* style for json conversion */
.content-wrapperbox {
    display: flex;
    gap: 20px;
    margin: 5px;
}

.left-column, .right-column {
    width: 48%;
}

.panel {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.api-results {
    background: black;
    color: white;
    padding: 10px;
    overflow-y: auto;
    height: 80%;
    border-radius: 5px;
}
/* Toast Container */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOutTop 3s ease-in-out forwards;
  }
  
  @keyframes fadeInOutTop {
    0% { opacity: 0; top: 10px; }
    10% { opacity: 1; top: 30px; }
    90% { opacity: 1; }
    100% { opacity: 0; top: 10px; }
  }
  /*for loan batch update instructions*/
  /* Modal backdrop */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
  }
  /* Modal content box */
  .modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 1.5em;
    border-radius: 6px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
  }
  /* Close button */
  .close-modal {
    float: right;
    font-size: 1.4em;
    cursor: pointer;
  }
  
  /* Top-right environment label */


.env-support-label {
  display: inline-block;
  background-color: transparent;
  color: rgb(128, 12, 12);
  font-size: 11px;
  font-weight: normal;
  border-radius: 12px;
  padding: 1px 5px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid #da9184;
}