/* Material Symbols Outlined - Professional Monochrome Icons from Google */
/* @link https://fonts.google.com/icons */

/* Classe de base pour les icônes Material Symbols */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

/* Variantes de taille */
.icon-xs {
    font-size: 1rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.icon-sm {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.icon-md {
    font-size: 1.5rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon-lg {
    font-size: 2rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.icon-xl {
    font-size: 2.5rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.icon-2xl {
    font-size: 3rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* Variantes de poids */
.icon-light {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.icon-regular {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon-medium {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.icon-bold {
    font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
}

/* Icônes remplies */
.icon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Navigation icon */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.5rem;
    margin-right: 0.75rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Button icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    margin-right: 0.5rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.btn-icon:last-child {
    margin-right: 0;
    margin-left: 0.5rem;
}

.btn-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Metric icon */
.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: currentColor;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.metric-icon.green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-icon.purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.metric-icon.red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.metric-icon.orange {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.metric-icon.blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Icônes de notification */
.notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Couleurs des icônes */
.icon-success {
    color: #10b981;
}

.icon-error {
    color: #ef4444;
}

.icon-warning {
    color: #f59e0b;
}

.icon-info {
    color: #3b82f6;
}

.icon-primary {
    color: #8b5cf6;
}

.icon-secondary {
    color: #64748b;
}

/* Icônes avec cercles de fond */
.icon-circle {
    border-radius: 50%;
    padding: 0.5rem;
}

.icon-circle.primary {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.icon-circle.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.icon-circle.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.icon-circle.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Animation pour les icônes de chargement */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-spin {
    animation: spin 1s linear infinite;
}

/* Icônes avec badge */
.icon-with-badge {
    position: relative;
    display: inline-block;
}

.icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-icon {
        width: 20px;
        height: 20px;
    }
}
