/* === Layout & Containers === */
body {
    background: rgb(255 255 255);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    padding: 0;
}

.main_container {
    background: #c1c1c1;
    display: flex;
    max-width: 1600px;
    overflow-x: hidden;
}

.container {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 35px;
    border-top-right-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    padding: 10px;
    width: 100%;
}

/* === Header & Logo === */
#header {
    margin-bottom: 10px;
    text-align: center;
}

#logo {
    display: inline-block;
}

#logo img {
    background: white;
    border-radius: 35px;
    width: 100%;
}

/* === Panels === */
#left_panel {
    display: flex;
    flex-direction: column;
    padding: 0px 12px 0px 5px;
    width: 200px;
}

#right_panel {
    flex-grow: 1;
    max-width: 1376px;
}

#content {
    background: #ffffff;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 35px;
    border-top-right-radius: 10px;
    min-height: 210px;
}

#job_submission_panel {
    background: #dddddd;
    border-bottom-right-radius: 0;
    border-radius: 10px;
    border-right: 2px solid #bdbdbd;
    border-top-right-radius: 0;
    margin-top: 10px;
    padding: 5px;
    position: relative;
    text-align: center;
    width: 100%;
    flex-grow: 1;
}

#recent_jobs {
    margin-bottom: 50px;
}

#recent_jobs ul {
    list-style-type: none;
    padding: 5px;
}

#recent_jobs ul li {
    background: #efefef;
    border: 1px solid #c1c1c1;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    font-family: monospace;
    margin-bottom: 5px;
    position: relative;
}

#recent_jobs ul li a {
    color: #000000;
    flex: 1;
    font-family: monospace;
    padding: 6px;
    text-decoration: none;
}

#recent_jobs .selected {
    background: #cee57a;
}

#job_display_info {
    bottom: 0;
    font-size: 11px;
    padding: 10px;
    position: absolute;
}

/* === Tabs === */
#tab_panel .tabs {
    margin-bottom: 0;
}

#tab_panel .tab {
    background: #dddddd;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
    display: inline-block;
    margin-right: 5px;
    padding: 10px;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
}

#tab_panel .active_tab {
    background: #ffffff;
}

/* === Forms & Inputs === */
#input_form {
    display: flex;
    padding: 20px;
}

#input_form input[type="file"] {
    display: none;
}

#input_opts {
    flex-grow: 1;
    margin-right: 50px;
    padding: 10px;
}

#input_params {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#input_params label {
    color: #333;
    display: block;
    font-weight: 600;
    padding: 6px 2px;
}

#model_selection {
    padding: 10px 0px;
}

#model_selection select {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    display: block;
    padding: 8px 10px;
}

#nt_seq_form,
#gb_annot_form {
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    padding: 10px;
    resize: vertical;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.high_input {
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
    padding: 8px 10px;
    width: 100%;
}

.input_filename {
    float: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 14px;
    padding: 0.75em 1.5em;
}

/* === Buttons === */
.blue_button {
    background-color: #4f46e5;
    border: none;
    border-radius: 0.375rem;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    padding: 0.75em 1.5em;
    transition: background-color 0.2s ease;
}

.blue_button:hover {
    background-color: #4338ca;
}

.blue_button:active {
    position: relative;
    top: 1px;
}

.left_btn {
    float: left;
}

.right_btn {
    float: right;
}

.submit_button {
    float: right;
    font-size: 16px;
    margin: 0px 30px 20px 0px;
}

.remove_btn {
    background: #ffc1c1;
    border: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
    padding: 0px 5px;
}

.remove_btn svg {
    height: 20px;
    width: 20px;
}

.remove_btn:hover {
    color: #000000;
}

.chevron-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin: 2px;
    padding: 0 2px;
    transition: background 0.2s;
    vertical-align: middle;
}

.chevron-btn svg {
    color: #4f46e5;
    height: 20px;
    transition: transform 0.2s;
    width: 20px;
}

.chevron-btn.open svg {
    transform: rotate(180deg);
}

.trash-btn {
    float: right;
}

.trash-btn svg {
    color: #9aa3a8;
    fill: none;
    height: 25px;
    opacity: 0.6;
    stroke: currentColor;
    transition: color .2s, opacity .2s;
    width: 25px;
}

.trash-btn.active svg {
    color: #d9534f;
    opacity: 1;
}

/* === Titles & Headers === */
.title {
    align-items: center;
    background-color: #f5f7fa;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #333;
    display: inline-flex;
    font-size: 20px;
    font-weight: 600;
    gap: 8px;
    margin-bottom: 10px;
    min-width: 235px;
    padding: 10px 10px;
}

.title label[for="results_limit_select"] {
    margin-bottom: 0;
}

.wide{
    width: 100%;
    padding: 0px;
}

.padding{
    padding: 10px 15px;
}

.main_title {
    background-color: #f5f7fa;
    border: none;
    border-top-left-radius: 35px;
    border-top-right-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 10px 30px;
}

/* === Expandable Sections === */
.expandable_header {
    align-items: left;
    background-color: #f5f7fa;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #333;
    cursor: pointer;
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 1em;
    text-align: left;
    transition: background 0.3s ease;
    width: 100%;
}

.expandable_content {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 250ms ease, opacity 200ms ease;
    will-change: max-height, opacity;
}

.expandable_inner {
    padding: 10px 0px 0px 20px;
}

/* === Miscellaneous Inputs === */
.rename_input {
    border: 1px solid #ffffff;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    line-height: 15px;
    padding: 5px;
    text-align: center;
}

.rename_input:focus-visible {
    border: 1px solid #4f46e5;
    outline: none;
}

/* === Loaders & Spinners === */
.loader {
    aspect-ratio: 1;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: #25b09b;
    display: grid;
    margin-right: 10px;
    width: 25px;
    animation: l15 1s infinite linear;
}

.loader::before,
.loader::after {
    border: inherit;
    border-radius: 50%;
    content: "";
    grid-area: 1/1;
    margin: 2px;
    animation: l15 2s infinite;
}

.loader::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes l15 {
    100% {
        transform: rotate(1turn)
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border: 3px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    height: 20px;
    width: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
}

/* === Progress Section === */
#progress_info ul {
    list-style-type: none;
    margin: 0px;
}

#progress_info li {
    align-items: center;
    display: flex;
}

/* === Utility Classes === */
.clear {
    clear: both;
}

.hidden {
    display: none;
}

.sidebar-section label.hidden {
    display: none !important;
}

.visible {
    display: block;
}

/* === Icons & Misc === */
.github_icon {
    align-items: center;
    display: flex;
    font-size: 1.1em;
    font-weight: 500;
    gap: 0.5em;
}

.check_sign {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-right: 10px;
}

.menu_title {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    padding: 5px;
}

.help_btn {
    background: none;
    border: 0px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.help_btn svg {
    fill: #4f46e5;
    height: 20px;
    width: 20px;
}

/* === Help Popup === */
#help_popup h3 {
    font-size: 18px;
    margin: 0 20px 0px 0px;
}

#help_popup #close_help {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

#help_popup p {
    margin: 10px 0;
}

#help_popup ul {
    list-style: none;
    margin: 0 0 0 20px;
    padding: 0;
}

#help_popup ul li {
    display: flex;
    gap: 18px;
    margin-bottom: 8px;
}

#help_popup ul li span {
    align-items: center;
    display: inline-flex;
    margin-right: 8px;
}

/* === Summary Styles === */
.summary-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  animation: fadeIn 250ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
}

/* Tabs fade-in */
.fade-target { opacity: 0; }
.fade-target.fade-visible { opacity: 1; transition: opacity 220ms ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  .fade-target.fade-visible { transition: none; }
}

.modern-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}