/* ── Upload zone ─────────────────────────── */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    background: #fafbff;
    user-select: none;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--bs-primary, #0d6efd);
    background: rgba(13, 110, 253, .04);
}
.upload-zone.drag-over { transform: scale(1.01); }
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
}
.upload-icon i { font-size: 1.5rem; }
.upload-title { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.upload-hint  { font-size: .78rem; color: #6c757d; }

/* ── File preview pill ───────────────────── */
.file-preview {
    display: none;
    align-items: center;
    gap: .625rem;
    background: rgba(0, 0, 0, .04);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    padding: .625rem .875rem;
    margin-top: .875rem;
    font-size: .875rem;
}
.file-preview.visible { display: flex; }
.file-preview-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.file-preview-size { color: #6c757d; font-size: .8rem; white-space: nowrap; }
.file-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: transform .15s;
    flex-shrink: 0;
}
.file-remove:hover { transform: scale(1.2); }

/* ── Toast bar ───────────────────────────── */
.toast-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .875rem 1.25rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
    max-width: calc(100vw - 2rem);
}
.toast-bar.show    { transform: translateX(-50%) translateY(0); }
.toast-bar.success { background: #198754; color: #fff; }
.toast-bar.error   { background: #dc3545; color: #fff; }

/* ── Success check circle ────────────────── */
.success-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198754, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(25, 135, 84, .35);
    animation: succ-pop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes succ-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── Char counter ────────────────────────── */
.char-counter { font-size: .78rem; color: #6c757d; text-align: right; transition: color .2s; }
.char-counter.warn { color: #dc3545; }
