/* ========================================
   File Navigator – Styles complets
   ======================================== */

/* --- Conteneur principal --- */
.WPFN-filenavigator {
    max-width: 100%;
    box-sizing: border-box;
    overflow: auto;
    height: var(--WPFN-height, auto) !important; /* géré par le style inline */
}

/* --- Barre d'outils (sticky) --- */
.WPFN-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f1f1f1;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* --- Boutons de la barre d'outils --- */
.WPFN-toolbar .WPFN-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;                     /* espace entre l'icône et le texte */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.WPFN-toolbar .WPFN-btn:hover {
    background: #e9e9e9;
}
.WPFN-toolbar .WPFN-btn:active {
    background: #d5d5d5;
}

/* --- Statut et indicateur de presse-papiers --- */
.WPFN-status {
    margin-left: 10px;
    font-weight: bold;
    flex: 1;
}
#WPFN-clipboard-indicator {
    margin-left: 10px;
    color: #0073aa;
}

/* --- Fil d'Ariane (breadcrumb) --- */
.WPFN-breadcrumb {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
}
.WPFN-breadcrumb a {
    text-decoration: none;
    color: #0073aa;
}

/* --- Liste des fichiers --- */
.WPFN-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Élément de la liste --- */
.WPFN-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.WPFN-item.is-dir a {
    font-weight: bold;
    color: #2c3e50;
}
.WPFN-item-checkbox {
    margin-right: 5px;
    flex-shrink: 0;
}

/* --- Contenu des fichiers (icône + nom) --- */
.WPFN-item-content,
.WPFN-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

/* --- Icônes génériques --- */
.WPFN-item-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 5px;
}
.WPFN-pdf-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 5px;
}

/* --- Nom du fichier --- */
.WPFN-item-name {
    font-weight: normal;
    font-size: 0.9em;
    line-height: 1.4;
    word-break: break-word;
}
.WPFN-item.is-dir .WPFN-item-name {
    font-weight: bold;
}

/* --- Taille et date --- */
.WPFN-item-size,
.WPFN-item-date {
    color: #888;
    font-size: 0.8em;
    margin-left: 5px;
    flex-shrink: 0;
}

/* --- Miniature d'image --- */
.WPFN-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}
.WPFN-thumbnail {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: #fff;
    vertical-align: middle;
    display: block;
}

/* --- Zoom au survol --- */
.WPFN-thumbnail-zoom {
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    z-index: 999;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 150px;
    max-width: 300px;
    max-height: 300px;
}
.WPFN-thumbnail-wrapper:hover .WPFN-thumbnail-zoom {
    display: block;
}
.WPFN-thumbnail-zoom img {
    display: block;
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    border-radius: 2px;
}

/* --- Zone de renommage --- */
.WPFN-rename-wrapper {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.WPFN-rename-input {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.9em;
}
.WPFN-rename-confirm,
.WPFN-rename-cancel {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

/* --- Message "vide" --- */
.WPFN-empty {
    color: #999;
    font-style: italic;
    padding: 10px 0;
}
.WPFN-sort-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    font-size: 13px;
}
.WPFN-sort-group select {
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}