/* file-drop-zone.css — shared styles for the drag/drop attachment widget.
   Consumed by Pages/Shared/_FileDropZone.cshtml + wwwroot/js/file-drop-zone.js.
   Designed to inherit colors via CSS light-dark() so it fits both the agent
   chat composer and the standard form pages without bespoke overrides. */

.fdz-bar { display: flex; gap: .45rem; align-items: flex-end; flex-wrap: nowrap; }

.fdz-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    height: 44px; padding: 0 .8rem; border-radius: 9999px; flex-shrink: 0;
    font-size: .78rem; font-weight: 600;
    border: 1px solid var(--ld-card-border);
    background: var(--ld-surface-secondary);
    color: var(--ld-text-secondary);
    cursor: pointer; white-space: nowrap;
}
.fdz-pill:hover { background: var(--ld-surface-secondary); }
.fdz-pill input { display: none; }

/* Thumbnail strip — hides itself when empty so the form doesn't show a
   blank spacer row. Each thumb is 44 px tall to match the pills. */
.fdz-thumbs { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 0; }
.fdz-thumbs:empty { display: none; }

.fdz-thumb { position: relative; }
.fdz-thumb img {
    height: 44px; width: 44px; object-fit: cover; border-radius: .45rem;
    border: 1px solid var(--ld-border);
}
.fdz-thumb button {
    position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
    line-height: 14px; text-align: center;
    background: #ef4444; color: #fff; border-radius: 9999px;
    border: none; cursor: pointer; font-size: .7rem; padding: 0;
}

/* Non-image attachment chip: icon + filename + size, capped width so a
   large drop doesn't blow out the form layout. Full name shows on hover
   via the title attribute set in JS. */
.fdz-thumb.fdz-thumb-file .fdz-thumb-file-inner {
    display: inline-flex; align-items: center; gap: .4rem;
    max-width: 220px; height: 44px; padding: 0 .55rem; border-radius: .45rem;
    background: var(--ld-surface-secondary);
    border: 1px solid var(--ld-border);
    color: var(--ld-text);
}
.fdz-thumb.fdz-thumb-file .fdz-thumb-file-inner i {
    color: var(--ld-stat-label); flex-shrink: 0;
}
.fdz-thumb.fdz-thumb-file .fdz-thumb-file-name {
    font-size: .75rem; font-weight: 600; max-width: 130px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    direction: ltr;
}
.fdz-thumb.fdz-thumb-file .fdz-thumb-file-size {
    font-size: .7rem; opacity: .7; flex-shrink: 0;
}

/* Highlight the host container while a drag is over it so users see where
   the drop target is. The .fdz-drag-over class is toggled by JS. */
.fdz-drag-over {
    outline: 2px dashed var(--ld-stat-label);
    outline-offset: 4px;
    background: var(--ld-surface-secondary);
    transition: background-color 120ms;
}
