/* Styles personnalisés pour les boutons d'actions */

/* Amélioration des boutons groupés */
.btn-group .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Boutons avec icônes - espacement */
.btn i {
    margin-right: 4px;
}

.btn-group-sm .btn i {
    margin-right: 0;
}

/* Amélioration des badges de statut */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.badge i {
    margin-right: 4px;
}

/* Effet de survol sur les lignes du tableau */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: scale(1.01);
}

/* Amélioration des cartes */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Boutons d'action colorés */
.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Animation des icônes au survol */
.btn:hover i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Style pour les tooltips */
.tooltip {
    font-size: 0.875rem;
}

/* Amélioration des boutons d'impression */
@media print {
    .btn, .btn-group, .border-bottom {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6;
        box-shadow: none;
    }
}

/* Styles pour les boutons de confirmation */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #d63384 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #520dc2 100%);
}

.btn-info.text-white {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    border: none;
}

.btn-info.text-white:hover {
    background: linear-gradient(135deg, #117a8b 0%, #1aa179 100%);
}

/* Style pour les boutons désactivés */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Amélioration de l'espacement des groupes de boutons */
.btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    overflow: hidden;
}

/* Messages de feedback visuels */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert i {
    margin-right: 8px;
}
