/* =============================================================================
   TOPBAR — DROPDOWN SYNCHRONISATION
   =============================================================================
   À coller dans style.css (ou widgets.css), section topbar/dropdowns.

   Réutilise la structure générique .dropdown-panel existante ; ajoute des
   classes spécifiques pour les lignes label/valeur, le bouton d'action,
   la barre de quota et le séparateur.
   ============================================================================= */


/* Ligne label/valeur dans le dropdown sync */
.dropdown-sync-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
}

.dropdown-sync-label {
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
}

.dropdown-sync-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
    white-space: nowrap;
}


/* Zone du bouton "Synchroniser maintenant" */
.dropdown-sync-action {
    padding: 4px 14px 10px;
}

.dropdown-sync-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.dropdown-sync-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.dropdown-sync-btn:active {
    transform: translateY(1px);
}


/* Séparateur fin */
.dropdown-sync-divider {
    height: 1px;
    background: var(--color-border, rgba(0, 0, 0, 0.08));
    margin: 4px 0;
}


/* Barre de progression du quota */
.dropdown-sync-bar {
    height: 6px;
    margin: 0 14px 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.dropdown-sync-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.dropdown-sync-bar-fill.is-ok {
    background: #0F6E56;
}

.dropdown-sync-bar-fill.is-warning {
    background: #BA7517;
}

.dropdown-sync-bar-fill.is-danger {
    background: #A32D2D;
}


/* Largeur minimum du panel pour bien afficher les lignes label/valeur */
#dropdown-sync {
    min-width: 260px;
}
