/* Styles personnalisés pour les cartes statistiques du tableau de bord */

/* Cartes avec background vert (success) - CA, Bénéfice, Proformas acceptées */
.stat-card-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
}

.stat-card-success .fi-wi-stats-overview-stat-label,
.stat-card-success .fi-wi-stats-overview-stat-value,
.stat-card-success .fi-wi-stats-overview-stat-description {
    color: white !important;
}

.stat-card-success .fi-wi-stats-overview-stat-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Cartes avec background bleu (primary) - Ventes */
.stat-card-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border: none !important;
}

.stat-card-primary .fi-wi-stats-overview-stat-label,
.stat-card-primary .fi-wi-stats-overview-stat-value,
.stat-card-primary .fi-wi-stats-overview-stat-description {
    color: white !important;
}

.stat-card-primary .fi-wi-stats-overview-stat-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Cartes avec background orange (warning) - Stock, Proformas en attente */
.stat-card-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border: none !important;
}

.stat-card-warning .fi-wi-stats-overview-stat-label,
.stat-card-warning .fi-wi-stats-overview-stat-value,
.stat-card-warning .fi-wi-stats-overview-stat-description {
    color: white !important;
}

.stat-card-warning .fi-wi-stats-overview-stat-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Cartes avec background rouge (danger) - Dépenses, Factures impayées, Ruptures, Proformas refusées */
.stat-card-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
}

.stat-card-danger .fi-wi-stats-overview-stat-label,
.stat-card-danger .fi-wi-stats-overview-stat-value,
.stat-card-danger .fi-wi-stats-overview-stat-description {
    color: white !important;
}

.stat-card-danger .fi-wi-stats-overview-stat-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Cartes avec background violet (info) */
.stat-card-info {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    border: none !important;
}

.stat-card-info .fi-wi-stats-overview-stat-label,
.stat-card-info .fi-wi-stats-overview-stat-value,
.stat-card-info .fi-wi-stats-overview-stat-description {
    color: white !important;
}

.stat-card-info .fi-wi-stats-overview-stat-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Effet hover sur les cartes */
.stat-card-success:hover,
.stat-card-primary:hover,
.stat-card-warning:hover,
.stat-card-danger:hover,
.stat-card-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* Ajustement pour le graphique sparkline (s'il est présent) */
.stat-card-success svg,
.stat-card-primary svg,
.stat-card-warning svg,
.stat-card-danger svg,
.stat-card-info svg {
    opacity: 0.8;
}
