.htmx-indicator {
    display: none;
}

.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
    display: flex !important; /* Force display */
}

/* Ensure message container has enough height */
.htmx-request .text-center.h-8.relative {
    height: 2rem !important; /* Override Tailwind's h-8 */
    min-height: 2rem !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: block !important;
    width: 100%;
    position: relative;
    overflow: hidden;
}


/* Base message styling */
.loading-message {
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    /* Animation removed; JavaScript will handle cycling */
    min-height: 1.5rem;
    line-height: 1.5rem;
    white-space: nowrap;
    top: 0;
    bottom: 0;
    margin: auto;
    overflow: hidden;
}



.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #3b82f6;
    animation: progress 0.5s ease-in-out forwards;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 90%;
    }
}

.htmx-request .progress-bar-fill {
    animation: progress 0.5s ease-in-out forwards;
}

/* Search button disabled state */
button#search-btn[disabled] {
    background-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

button#search-btn[disabled]:hover,
button#search-btn[disabled]:focus {
    background-color: #e2e8f0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.blur-overlay {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
}

/* Hide blur overlays for logged-in users */
body.logged-in .blur-overlay {
    display: none !important;
}