body {
    font-family: 'Mona Sans', sans-serif;
}

[data-bs-theme="dark"] {
    background-color: #000;
    color: #ffffff;
}


textarea {
    font-family: 'Courier New', Courier, monospace;

}

/* Gradient Header */

.header,
footer {
    background: -moz-linear-gradient(105deg, rgb(252 74 255 / 60%) 0%, rgb(129 60 255) 17%, rgba(252, 176, 69, 0.95) 81%, rgba(252, 122, 122, 0.9) 96%);
    background: -webkit-linear-gradient(105deg, rgb(252 74 255 / 60%) 0%, rgb(129 60 255) 17%, rgba(252, 176, 69, 0.95) 81%, rgba(252, 122, 122, 0.9) 96%);
    background: linear-gradient(105deg, rgb(252 74 255 / 60%) 0%, rgb(129 60 255) 17%, rgba(252, 176, 69, 0.95) 81%, rgba(252, 122, 122, 0.9) 96%);
    color: #fff;
    background-size: 400% 200% !important;
    -webkit-animation: Gradient 10s ease infinite;
    -moz-animation: Gradient 10s ease infinite;
    animation: Gradient 10s ease infinite;
}


.header {
    position: sticky;
    padding: 0 10%;
    z-index: 1000;
}


footer {
    color: #fff;
    position: sticky;
    padding: 10px 30px;
    font-size: 12px;
}

.footer-socials {
    display: none;
    /* Initially hide social icons */
    opacity: 0;
    /* Make them invisible */
    transition: opacity 1s ease;
    /* Smooth transition for opacity */
    padding-left: 10px;
}

.footer-text:hover+.footer-socials,
.footer-socials.visible {
    display: block;
    /* Show icons */
    opacity: 1;
    /* Fade in the icons */
}

.footer-socials a {
    position: relative;
    /* Ensure positioning context for the glow effect */
    color: #ffffff;
    /* Default color for the icons */
    transition: color 0.3s ease, text-shadow 0.3s ease;
    /* Smooth transition for color and text-shadow */
}

.footer-socials a:hover {
    color: #ffffff;
    /* Change color of the icons on hover */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7),
        /* Inner glow */
        0 0 10px rgba(255, 255, 255, 0.5),
        /* Outer glow */
        0 0 15px rgba(255, 255, 255, 0.3);
    /* More outer glow */
}

@keyframes Gradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 0%
    }

    100% {
        background-position: 0% 50%
    }
}

.nav-item {
    position: relative;
    display: flex;
    /* Or block depending on your layout */
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
}

.nav-item a {
    display: block;
    /* Make the anchor take full width/height of parent */
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    /* Ensure it's visually padded */
    cursor: pointer !important;
    color: #fff;
}

a {
    text-decoration: none;

}

.nav-item>i,
.nav-item>i:hover {
    cursor: pointer !important;
}


.navbar-expand-lg {
    padding: 24px 0 0 0;
}

.navbar-collapse {
    margin: 0 0 -2px 0;
}

.nav-item.active {
    border-bottom: #fff 5px solid;
}

.nav-item:not(.active):hover {
    opacity: 1;
    /* Make it fully visible on hover */
}


.nav-item.text {
    min-width: 120px;
    text-align: center;

}

.nav-item.text:hover {
    border-bottom: #ffffff93 5px solid;
    cursor: pointer !important;
}

.nav-item:hover {
    /* add glow */
    filter: drop-shadow(0 0 5px #fff);
}




/* Main Content */
.content {
    /* max-width: 800px; */
    padding-bottom: 60px;
    min-height: calc(100vh - 109px);

}

.section-title {
    margin: 20px 0 0 0;
    font-size: 18px;
}

.option-row {
    border-top: rgba(255, 255, 255, .1) 1px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 20px;
}


.option-row.first {
    border: none;
}



.option-desc p {
    font-size: 13px;
    font-weight: 400;
    margin: 0 10px 0 0;
}

.card {
    /* background-color: #1e1e1e; */
    margin: 20px 0;
    box-shadow: 2px 2px 3.5px 2px #00000057;
}

.card-body {
    margin: 20px 0;
    padding: 3px 0;
    box-shadow: 2px 2px 3.5px 2px #00000057;
    border-radius: 4px;
}

.form-control {
    font-size: 14px;
}

.nav-item button {
    cursor: pointer;

    background-color: transparent;
    border: none;
    color: #fff;
    margin: 0;
    padding: 0;
}


.login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 104px);
}



/* #current_cron_command:hover {
    border-color: gold;
    border-width: 5px;
} */

.form-control.disabled {
    background-color: #eee;
    border: none;
    color: #444;
}

#currentDateTime {
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
}


.cron-expression.invalid {
    background-color: #ffefef !important;
    /* or any other red shade */
}





.placeholder-img {
    border: 5px dashed #444;
    border-radius: 5px;
    opacity: 0.2;
}

[data-bs-theme="dark"] .placeholder-img {
    filter: invert(1);
}

.config-textarea {
    height: 8em;
}

.list-group-item.category {
    font-weight: bold;
    background-color: #efefef7d;
}

.list-group-item.topic {
    color: #444;
    padding-left: 30px;
}

.list-group-item.active {
    color: #fff;
}

#saveAsPdf {
    background-color: #007bff;
    /* Bootstrap primary color */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#saveAsPdf:hover {
    background-color: #0056b3;
    /* Darker shade on hover */
}

.screenshot-span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    color: #fff;
    background-color: #535353;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: default;
    align-items: center;
    display: inline-flex;
}

.screenshot-span.number {
    background-color: #535353;
}

.screenshot-span.name {
    color: #fff;
    background-color: #b386ff;
}

.screenshot-span .fas,
.screenshot-uid .fas,
.screenshot-uid-span .fas {
    padding-right: 4px;
}

.screenshot-uid,
.screenshot-uid-span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: default;
    align-items: center;
    display: inline-flex;

}


.screenshot-uid-span {
    color: #fff;
    background-color: #000;
    padding: 3px 6px;
    border-radius: 3px;
}

.sync-arrow {
    color: #777;
    font-size: 8px;
}

.button-container {
    display: flex;
    gap: 10px;
    /* Adjusts the spacing between buttons */
}

.archive {
    background-color: #d9534f;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.archive:hover {
    background-color: #c9302c;
    color: #fff;
}

.unarchive {
    background-color: #999;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.unarchive:hover {
    background-color: #666;
    color: #fff;
}


.run-now {
    background-color: #5cb85c;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.run-now:hover {
    background-color: #4cae4c;
    color: #fff;

}

.run-dev {
    background-color: #ffcc00;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.run-dev:hover {
    background-color: #eabb00;
    color: #fff;
}

.save-changes {
    background-color: #337ab7;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

.save-changes:hover {
    background-color: #286090;
    color: #ffffff;
}


.selectpicker {
    display: block;
    /* Ensure it's displayed as a block */
}

/* Optionally hide the "Nothing selected" message */
.selectpicker .dropdown-toggle .filter-option {
    display: none;
    /* This hides the "Nothing selected" message */
}

/* where button includes id=copy-button */

button[id^="copy-button"] {
    padding: 0 10px;
    /* dashed border */
    border: 2px dashed #ccc;
    font-size: 0.85rem;
}

.form-label {
    font-size: 14px;
}

.form-floating label {
    font-size: 0.85rem;
    color: rgba(var(--bs-body-color-rgb), .65);
}

.form-floating input {
    padding-top: 1.5rem;
    /* Space for floating label */
}

.option-desc .form-label {
    font-weight: 600;
}


.form-floating.select {
    position: relative;
}

.form-floating.select label:not(li > label) {
    position: absolute;
    top: 50%;
    margin: auto;
    transform: translateY(-50%);
    transition: transform 0.2s ease, font-size 0.2s ease;
    /* font-size: 14px; */
    /* color: #6c757d; */
}

.form-floating.select label.active {
    transform: scale(.85) translateY(-2.75rem) translateX(.15rem);
}

.form-floating .form-select,
.form-floating .form-control {
    padding-top: 1.25rem;
    /* Space for label */
    padding-bottom: 0.25rem;
    font-size: 14px;
}

.dropdown-menu {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

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

.dropdown-toggle {
    text-align: left;
}


.dropdown-item input[type="checkbox"] {
    margin-right: 8px;
}

.multiselect button {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

.multiselect button.deselected {
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    color: rgba(var(--bs-body-color-rgb), .65);
}

.screenshot-card {
    /* add shadow */
    box-shadow: 3px 6px 10px 0px rgba(0, 0, 0, 0.2);
}

.screenshot-card li.caption {
    font-size: 16px;
    background-color: #f8f9fa;
    min-height: 56px;
}

.screenshot-card li.caption p.form-label {
    font-size: 18px;
}


a:has(> .polarized-thumb) {
    width: 100%;
}

.polarized-thumb {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 3px 6px 10px 0px rgba(0, 0, 0, 0.2);
    background: #fff;
    transition: transform 0.3s ease;
    width: 100%;
    max-height: 50%;
}

.polarized-thumb:hover {
    transform: scale(1.03) rotate(calc(-0.7deg));
}

.polarized-thumb .image-canvas {
    position: relative;
    background-color: #eaeaea1c;
    box-shadow: 0px 0px 13px 1px inset rgb(0 0 0 / 7%);
    display: flex;
    width: 92%;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin-top: 4%;
    overflow: hidden;
    /* Prevent overflow */
}

.polarized-thumb .screenshot-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid #0000000f;
    box-shadow: 0px 0px 10px 1px #0000000f;
}

.polarized-thumb .placeholder-img {
    opacity: 0.5;
    /* Make placeholder image slightly transparent */
}

.polarized-thumb .caption {
    background-color: #fff;
    padding: 10px 0;
    text-align: center;
    color: #999999;
    font-style: italic;
    font-size: 13px;
    height: 60px;
}

.polarized-thumb .caption .time {
    margin: 0;
    background-color: #fff;
    font-size: 9px;
}

.polarized-thumb .caption .name {
    background-color: #bbb;
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
    font-style: normal;
}

.cron-status-span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: default;
}



.cron-status-span.active {
    background-color: #059d05;
}

.cron-status-span.disable-button {
    background-color: #777;
    border: 1px solid #444;
    cursor: pointer;
}

.cron-status-span.disable-button:hover {
    background-color: #444;
    border: 1px solid #000;
    cursor: pointer;
}

.cron-status-span.inactive {
    background-color: #ff7f7f;
}



.editor-container {
    display: flex;
    position: relative;
    width: 100%;
}

.line-numbers {
    padding: 5px;
    background: #f8f9fa;
    text-align: right;
    line-height: 1.5em;

    font-size: 10px;
    color: #777;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: 1px solid #ddd;
    min-width: 30px;
    white-space: pre;
    display: inline-block;
    /* Prevents alignment issues */
}

.navigation-editor {
    flex: 1;
    padding: 5px;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.5em;
    white-space: pre-wrap;
    overflow: auto;
    min-height: 60px;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 0 0.375rem 0.375rem 0;

}

.editor-container>.line-numbers,
.navigation-editor {
    height: auto;
    /* Both will be dynamically adjusted */
}

p[name="desc-cron-expression"] {
    height: 16px;

}

.form-check-input {
    width: 40px !important;
    margin-left: 0 !important;
    padding-top: 16px !important;
}

.form-check-input:checked {
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    opacity: 0.9;
}




.overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    /* Semi-transparent background */
    color: white;
    font-size: 10px;
    padding: 1px 3px;
    border-radius: 3px;
    text-align: center;
    opacity: 1;
    /* Always visible */
    transition: opacity 0.3s;
}

.polarized-thumb:hover .overlay {
    opacity: 0.3;
}

.icon-left {
    margin-right: 10px
}

.dropdown-item {
    cursor: pointer;
}

a.text-light:hover {
    color: #fff !important;
    /* add glow */
    text-shadow: 0 0 1px #ffffff92, 0 0 2px #ffffff92, 0 0 3px #ffffff92;

}

a.text-dark:hover {
    color: #000 !important;
    /* add glow */
    text-shadow: 0 0 1px #00000092, 0 0 2px #00000092, 0 0 3px #00000092;

}