/* PlayQR FancyFileUpload — bouton fichier stylé et traduisible.
 * Remplace le bouton natif moche/non-traduisible des navigateurs. */

.pqr-fancy-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
    max-width: 100%;
    box-sizing: border-box;
}
.pqr-fancy-file:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.pqr-fancy-file-btn {
    display: inline-block;
    background: #1f2937;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}
.pqr-fancy-file-name {
    color: #6b7280;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 13px;
}
.pqr-fancy-file-name.pqr-has-file {
    color: #1f2937;
    font-weight: 500;
}
.pqr-fancy-file-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}
.pqr-fancy-file-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e5e7eb;
    flex-shrink: 0;
    display: none;
}
.pqr-fancy-file-thumb.pqr-has-preview {
    display: block;
}
.pqr-fancy-file-clear {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    display: none;
}
.pqr-fancy-file-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}
.pqr-fancy-file-clear.pqr-visible {
    display: inline-block;
}
