/* Custom logout confirmation modal */
#logout-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.logout-modal-box {
    background: #1f2430;
    color: white;
    border: 2px solid #4FC3F7;
    border-radius: 16px;
    padding: 24px 28px;
    width: min(90vw, 380px);
    text-align: center;
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.35);
}

.logout-modal-box h2 {
    font-size: 20px;
    margin-bottom: 22px;
}

.logout-modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

#confirm-logout-btn,
#stay-logout-btn {
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: bold;
    cursor: pointer;
}

#confirm-logout-btn {
    background: #ff4d4d;
    color: white;
}

#stay-logout-btn {
    background: #4FC3F7;
    color: #003087;
}

/* General STEVE info modal */
#steve-info-modal,
#steve-search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.steve-info-modal-box,
.steve-search-modal-box {
    background: #1f2430;
    color: white;
    border: 2px solid #4FC3F7;
    border-radius: 16px;
    padding: 24px 28px;
    width: min(90vw, 420px);
    text-align: center;
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.35);
}

.steve-info-modal-box h2,
.steve-search-modal-box h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.steve-info-modal-content {
    text-align: left;
    line-height: 1.55;
    margin-bottom: 20px;
}

.steve-info-modal-content p {
    margin-bottom: 8px;
}

.steve-info-modal-actions,
.steve-search-modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

#close-steve-info-modal,
#run-steve-search-btn,
#cancel-steve-search-btn {
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: bold;
    cursor: pointer;
}

#close-steve-info-modal,
#run-steve-search-btn {
    background: #4FC3F7;
    color: #003087;
}

#cancel-steve-search-btn {
    background: #2a2f3a;
    color: white;
    border: 1px solid #4FC3F7;
}

#steve-search-modal-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #4FC3F7;
    background: #2a2f3a;
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    outline: none;
}

#steve-search-modal-input::placeholder {
    font-style: italic;

    background: linear-gradient(
        100deg,
        #7f8796 0%,
        #7f8796 38%,
        #aeb5c2 50%,
        #7f8796 62%,
        #7f8796 100%
    );

    background-size: 250% 100%;
    background-position: 150% 0;

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;

    animation: steveCreditShimmer 4.2s linear infinite;
}

#steve-search-modal-error {
    min-height: 20px;
    color: #ff9999;
    font-size: 14px;
    margin-bottom: 14px;
}

.steve-info-credit {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    user-select: none;

    background: linear-gradient(
        100deg,
        #7f8796 0%,
        #7f8796 38%,
        #aeb5c2 50%,
        #7f8796 62%,
        #7f8796 100%
    );

    background-size: 250% 100%;
    background-position: 150% 0;

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation: steveCreditShimmer 4.2s linear infinite;
}

@keyframes steveCreditShimmer {
    0% {
        background-position: 150% 0;
    }

    100% {
        background-position: -150% 0;
    }
}