.enh-bulk-file-import {
    --enh-file-preview-size: 5.5rem;
    --enh-file-preview-border: #d7dde8;
    --enh-file-preview-bg: #f8fafc;
}

.enh-bulk-file-import-dropzone {
    position: relative;
    display: grid;
    gap: 0.35rem;
    place-items: center;
    min-height: 9rem;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border: 2px dashed #8aa1c2;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #1f3b5f;
    cursor: pointer;
    text-align: center;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.enh-bulk-file-import-dropzone:hover,
.enh-bulk-file-import-dropzone:focus-within,
.enh-bulk-file-import-dropzone-hover {
    border-color: #2563eb !important;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

.enh-bulk-file-import-native-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.enh-bulk-file-import-dropzone > span {
    pointer-events: none;
}

.enh-bulk-file-import-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0.35rem 0.9rem rgba(37, 99, 235, 0.22);
}

.enh-bulk-file-import-dropzone-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background:
        linear-gradient(#1d4ed8, #1d4ed8) center 60% / 1.15rem 0.18rem no-repeat,
        linear-gradient(#1d4ed8, #1d4ed8) center 42% / 0.18rem 1.15rem no-repeat,
        #dbeafe;
}

.enh-bulk-file-import-dropzone-title {
    font-size: 1rem;
    font-weight: 700;
}

.enh-bulk-file-import-dropzone-help {
    color: #64748b;
    font-size: 0.82rem;
}

.enh-bulk-file-import-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.enh-bulk-file-import-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.enh-bulk-file-import-folder-row {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    margin: 0 0 0.75rem;
}

.enh-bulk-file-import-folder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.enh-bulk-file-import-folder-path {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enh-bulk-file-import-folder-link,
.enh-bulk-file-import-copy-path {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.45rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.enh-bulk-file-import-folder-link:hover,
.enh-bulk-file-import-copy-path:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.enh-bulk-file-import-copy-path {
    font-family: inherit;
}

.enh-bulk-file-import-progress-list {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.7rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.85rem;
    background: #eff6ff;
    color: #1e3a8a;
}

.enh-bulk-file-import-progress-row {
    display: grid;
    gap: 0.25rem;
}

.enh-bulk-file-import-progress-row span {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enh-bulk-file-import-progress-track {
    position: relative;
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.enh-bulk-file-import-progress-bar {
    position: absolute;
    inset-block: 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #1d4ed8);
    animation: enh-bulk-file-import-progress 1.1s ease-in-out infinite;
}

@keyframes enh-bulk-file-import-progress {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(250%);
    }
}

.enh-bulk-file-import-card {
    display: grid;
    grid-template-columns: var(--enh-file-preview-size) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: calc(var(--enh-file-preview-size) + 1rem);
    padding: 0.55rem;
    border: 1px solid var(--enh-file-preview-border);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.enh-bulk-file-import-preview {
    display: grid;
    place-items: center;
    width: var(--enh-file-preview-size);
    height: var(--enh-file-preview-size);
    overflow: hidden;
    border: 1px solid var(--enh-file-preview-border);
    border-radius: 0.7rem;
    background: var(--enh-file-preview-bg);
}

.enh-bulk-file-import-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.enh-file-thumbnail-probe {
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}

.enh-file-thumbnail-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.enh-file-thumbnail-spinner {
    width: 1.7rem;
    height: 1.7rem;
    border: 0.22rem solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 999px;
    animation: enh-file-thumbnail-spin 900ms linear infinite;
}

@keyframes enh-file-thumbnail-spin {
    to {
        transform: rotate(360deg);
    }
}

.enh-bulk-file-import-preview-empty span {
    max-width: 4.5rem;
    overflow: hidden;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enh-bulk-file-import-file-details {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.enh-bulk-file-import-file-details strong,
.enh-bulk-file-import-file-details span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enh-bulk-file-import-file-details span {
    color: #64748b;
    font-size: 0.82rem;
}
