/*CUSTOM RESPONSIVE SETTINGS*/
/* Default styles */
.logo {
    width: 125px;
    height: auto;
}

.nav-item {
    font-size: 1.1em;
}

.title {
    font-size: 1.9em;
}

.env {
    font-size: 1.3em;
    color: darkorange;
}

/* Medium screens (tablets) */
@media (max-width: 768px) {
    .logo {
        width: 105px;
    }

    .nav-item {
        font-size: 0.7em;
    }

    .title {
        font-size: 1.3em;
    }

    .env {
        font-size: 0.7em;
        color: darkorange;
    }
}

/* Small screens (phones) */
@media (max-width: 480px) {
    .logo {
        width: 95px;
    }

    .nav-item {
        font-size: 0.5em;
    }

    .title {
        font-size: 1.1em;
    }

    .env {
        font-size: 0.5em;
        color: darkorange;
    }
}


.add-margin {
    margin-bottom: 11px;
}

main > .container {
    padding-top: 15px;
}

.responsive-logo {
    width: 100%;
    height: auto;
    max-width: 150px; /* Adjust the max-width as needed */
}

.responsive-header {
    font-size: 2vw;
    font-weight: 500;
}

.icon::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.filter::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    content: "\f0b0";
}

.reset::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    content: "\f00d";
}

#box {
    color: transparent;
    caret-color: black;
    font-style: normal; /*must be same as in the svg for caret to align*/
    font-variant: normal;
    font-size: 13.3px;
    padding: 2px;
    font-family: monospace;
}

#sl_box {
    color: transparent;
    caret-color: black;
    font-style: normal; /*must be same as in the svg for caret to align*/
    font-variant: normal;
    font-size: 13.3px;
    padding: 2px;
    font-family: monospace;
}

.signature_style {
    /*font-family: 'Great Vibes';*/
    font-family: 'Cedarville Cursive';
}

.grey_style {
    background-color: #E8E8E8;
}

.custom-row td {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
}

/* Search Term styling */
mark.hl {
    background: #ffed61; /* soft yellow */
    padding: 0 .15em;
    border-radius: .2em;
}

/* Background color for readonly & disabled fields */
/* START */
.readonly-field {
    background-color: #f0f0f0;
    cursor: not-allowed;
    pointer-events: none;
}

    .readonly-field:focus {
        background-color: #f0f0f0;
        outline: none;
        box-shadow: none;
        pointer-events: none;
    }

.disabled-field {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 1; /* Optional: override default grayed-out look */
}

    .disabled-field:focus {
        background-color: #e9ecef;
        outline: none;
        box-shadow: none;
    }
/* END */

/* spinner */
/* START */
/* Simple, accessible loading state for buttons */
button.is-loading,
input[type="submit"].is-loading {
    position: relative;
    pointer-events: none; /* belt & suspenders; you're also disabling in JS */
    --btn-spinner-size: 1em; /* customize per-button if needed */
    --btn-spinner-offset-x: 0.6rem; /* left padding for spinner */
    padding-left: calc(var(--btn-spinner-size) + (var(--btn-spinner-offset-x) * 2));
}

    /* The spinner */
    button.is-loading::before,
    input[type="submit"].is-loading::before {
        content: "";
        position: absolute;
        left: var(--btn-spinner-offset-x);
        top: 50%;
        width: var(--btn-spinner-size);
        height: var(--btn-spinner-size);
        margin-top: calc(var(--btn-spinner-size) / -2);
        border-radius: 50%;
        border: 2px solid currentColor; /* matches text color for contrast */
        border-right-color: transparent; /* gap for spinner look */
        animation: btn-spin 0.6s linear infinite;
        opacity: 0.85;
    }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    button.is-loading::before,
    input[type="submit"].is-loading::before {
        animation: none;
        border-right-color: currentColor; /* solid ring instead of animation */
    }
}

/* Optional: slightly dim when disabled */
button[disabled].is-loading,
input[type="submit"][disabled].is-loading {
    opacity: 0.9;
}

/* Spin animation */
@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
/* END */

/* Floating Timer Window */
/* START */
#floatingTimerWindow {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 225px;
    height: 250px;
    background-color: white;
    border: 1px solid red;
    z-index: 9999; /* Ensures the window stays on top */
    padding: 5px;
}
/* END */

/* Centered Maintenance message box with spinning gear */
/* START */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 55vh;
    margin: 0;
    /* display: flex;
                    justify-content: center;
                    align-items: center;
                    height: 100%; */
}

.message-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 500px;
}

.gear-icon {
    font-size: 48px;
    display: inline-block;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* END */