/* ── Drag-and-drop upload zone ─────────────────────────────── */
.np-drop-zone {
    border: 2px dashed #ced4da;
    border-radius: .5rem;
    padding: 2rem 1.5rem;
    cursor: pointer;
    background: #f8f9fa;
    transition: border-color .2s, background .2s;
    min-height: 130px;
    color: #6c757d;
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
}
.np-drop-zone:hover,
.np-drop-zone.np-drag-over {
    border-color: #198754;
    background: #f0faf4;
}
.np-drop-zone.np-drag-over svg { stroke: #198754; }
.np-browse-link {
    color: #198754;
    text-decoration: underline;
    cursor: pointer;
}
.np-hidden-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
}

/* ── Preview grid ──────────────────────────────────────────── */
.np-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.np-card {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: .4rem;
    overflow: hidden;
    background: #fff;
}
.np-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #e9ecef;
}
.np-card-body {
    padding: 5px 8px 6px;
    font-size: .72rem;
    color: #495057;
}
.np-card-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.np-card-size  { color: #adb5bd; }
.np-card-err   { color: #842029; font-size: .7rem; font-weight: 500; padding: 4px 6px; }

.np-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}
.np-remove:hover { background: #dc3545; }
