/* ============================================================
   IO Dropzone — styles réutilisables
   ============================================================ */

/* Dragover state for existing .dropzone wrappers */
.dropzone.io-dz-over,
.io-dz.io-dz-over {
    border-color: #F5A623 !important;
    background: rgba(245, 166, 35, .12) !important;
    transform: scale(1.01);
    transition: transform .15s, border-color .15s, background .15s;
}
.dropzone.io-dz-has-file,
.io-dz.io-dz-has-file {
    border-color: #16a34a;
    background: rgba(22, 163, 74, .06);
    color: #166534;
}

/* Chip showing selected filename */
.io-dz-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(22, 163, 74, .12);
    color: #166534;
    border: 1px solid rgba(22, 163, 74, .25);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.io-dz-chip i { font-size: 11px; }

[data-theme="dark"] .io-dz-chip {
    background: rgba(34, 197, 94, .15);
    color: #86efac;
    border-color: rgba(34, 197, 94, .35);
}

/* Auto-wrapped bare <input type="file"> */
.io-dz.io-dz-auto {
    position: relative;
    border: 2px dashed var(--border-color, #d1d5db);
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all .2s ease;
    background: var(--bg-secondary, #f8fafc);
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.io-dz.io-dz-auto:hover {
    border-color: #F5A623;
    background: rgba(245, 166, 35, .04);
    color: var(--text-primary, #1a1d23);
}
.io-dz.io-dz-auto i {
    font-size: 22px;
    color: #F5A623;
}
.io-dz.io-dz-auto .io-dz-label {
    font-size: 13px;
    font-weight: 500;
}

[data-theme="dark"] .io-dz.io-dz-auto {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.02);
}
[data-theme="dark"] .io-dz.io-dz-auto:hover {
    background: rgba(245, 166, 35, .08);
}

/* Mobile : padding tighter */
@media (max-width: 640px) {
    .io-dz.io-dz-auto { padding: 14px 12px; min-height: 60px; }
    .io-dz.io-dz-auto i { font-size: 18px; }
    .io-dz.io-dz-auto .io-dz-label { font-size: 12px; }
}
