/* ============================================
   BUTTONS-ACTIONS.CSS - Boutons compacts
   Pour listes, cartes, actions rapides
   ============================================ */

/* ========== BOUTONS ACTIONS COMPACTS ========== */

.btn-action-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action-compact:hover {
    transform: translateY(-1px);
}

/* VOIR : Or - Action principale */
.btn-action-compact.btn-view {
    background: var(--theme-color-1, #B8941F);
    color: white;
    border-color: var(--theme-color-1, #B8941F);
}

.btn-action-compact.btn-view:hover {
    background: var(--theme-color-1-hover, #9a7519);
    box-shadow: 0 2px 4px rgba(var(--theme-color-1-rgb, 184, 148, 31), 0.3);
}

/* MODIFIER : Argenté */
.btn-action-compact.btn-edit {
    background: var(--theme-color-4, #7f8c8d);
    color: white;
    border-color: var(--theme-color-4, #7f8c8d);
}

.btn-action-compact.btn-edit:hover {
    background: var(--theme-color-4-hover, #6c7a7b);
}

/* TERMINER/VALIDER : Blanc + bordure gris */
.btn-action-compact.btn-complete {
    background: white;
    color: var(--dark-grey, #2c3e50);
    border-color: var(--dark-grey, #2c3e50);
}

.btn-action-compact.btn-complete:hover {
    background: var(--dark-grey, #2c3e50);
    color: white;
}

/* LIER : Blanc + bordure thème */
.btn-action-compact.btn-link {
    background: white;
    color: var(--theme-color-1, #B8941F);
    border-color: var(--theme-color-1, #B8941F);
}

.btn-action-compact.btn-link:hover {
    background: var(--theme-color-1, #B8941F);
    color: white;
}

/* DÉLIER : Argenté */
.btn-action-compact.btn-unlink {
    background: var(--theme-color-4, #7f8c8d);
    color: white;
    border-color: var(--theme-color-4, #7f8c8d);
}

.btn-action-compact.btn-unlink:hover {
    background: var(--theme-color-4-hover, #6c7a7b);
}

/* SUPPRIMER : Gris foncé */
.btn-action-compact.btn-delete {
    background: var(--dark-grey, #2c3e50);
    color: white;
    border-color: var(--dark-grey, #2c3e50);
}

.btn-action-compact.btn-delete:hover {
    background: #1a252f;
}

/* ========== BOUTONS MINI ========== */

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.6rem;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* MODIFIER : Argenté */
.btn-mini.btn-edit {
    background: var(--theme-color-4, #7f8c8d);
    color: white;
    border-color: var(--theme-color-4, #7f8c8d);
}

.btn-mini.btn-edit:hover {
    background: var(--theme-color-4-hover, #6c7a7b);
}

/* SUPPRIMER : Gris foncé */
.btn-mini.btn-delete {
    background: var(--dark-grey, #2c3e50);
    color: white;
    border-color: var(--dark-grey, #2c3e50);
}

.btn-mini.btn-delete:hover {
    background: #1a252f;
}

/* DÉLIER : Argenté */
.btn-mini.btn-unlink {
    background: var(--theme-color-4, #7f8c8d);
    color: white;
    border-color: var(--theme-color-4, #7f8c8d);
}

.btn-mini.btn-unlink:hover {
    background: var(--theme-color-4-hover, #6c7a7b);
}

/* ========== BOUTONS WIDGET (Dashboard) ========== */

.btn-widget-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--theme-color-1, #B8941F);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-widget-action:hover {
        background: var(--theme-color-1-hover, #9a7519);
        transform: translateY(-2px);
    }

.btn-widget-action-reverse {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--theme-color-1, #B8941F);
    background: white;
    border: 1px solid;
    border-color: var(--theme-color-1, #B8941F);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-widget-action-reverse:hover {
        transform: translateY(-2px);
    }

.btn-widget-mini-action-reverse {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.6rem;
    color: var(--theme-color-1, #B8941F);
    background: white;
    border: 1px solid;
    border-color: var(--theme-color-1, #B8941F);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-widget-mini-action-reverse:hover {
    transform: translateY(-1px);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .btn-action-compact {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-mini {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}
