/* HBF Upload — progress UI for admin file uploads (self-hosted). */

/* ── Inline per-input status (Livewire + selected-file badge) ─────────── */
.hbf-upload-status {
    margin-top: 6px;
    font-size: 12.5px;
}

.hbf-upload-status__bar {
    height: 8px;
    background: #e6edf5;
    border-radius: 999px;
    overflow: hidden;
    margin: 4px 0;
}

.hbf-upload-status__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    border-radius: 999px;
    transition: width .2s ease;
}

.hbf-upload-status__label { color: #52657a; }
.hbf-upload-status__label--ok { color: #15803d; font-weight: 600; }
.hbf-upload-status__label--err { color: #b91c1c; font-weight: 600; }

.hbf-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 10px;
    background: #eef7f6;
    border: 1px solid #cde9e5;
    border-radius: 999px;
    font-size: 12.5px;
    color: #0f6b5f;
    max-width: 100%;
}

.hbf-file-chip i { flex: 0 0 auto; }
.hbf-file-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Full-screen upload popup (classic form submits) ──────────────────── */
.hbf-upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 45, .55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.hbf-upload-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hbf-upload-card {
    width: min(420px, calc(100vw - 40px));
    background: #fff;
    border-radius: 14px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(10, 25, 40, .35);
    text-align: center;
}

.hbf-upload-card__icon {
    font-size: 30px;
    color: #0d9488;
    margin-bottom: 10px;
}

.hbf-upload-card__icon .fa-check-circle { color: #16a34a; }
.hbf-upload-card__icon .fa-times-circle { color: #dc2626; }

.hbf-upload-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1e2f40;
    margin-bottom: 2px;
}

.hbf-upload-card__file {
    font-size: 12.5px;
    color: #64788c;
    margin-bottom: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hbf-upload-card__bar {
    height: 10px;
    background: #e6edf5;
    border-radius: 999px;
    overflow: hidden;
}

.hbf-upload-card__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    border-radius: 999px;
    transition: width .15s ease;
}

.hbf-upload-card__fill.is-indeterminate {
    width: 40%;
    animation: hbf-upload-slide 1.1s ease-in-out infinite;
}

@keyframes hbf-upload-slide {
    0%   { margin-left: -40%; }
    100% { margin-left: 100%; }
}

.hbf-upload-card__percent {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0d9488;
}

/* Hover affordance on enhanced file inputs */
input[type="file"].hbf-enhanced { transition: box-shadow .15s ease; cursor: pointer; }
input[type="file"].hbf-enhanced:hover { box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); border-radius: 6px; }
