/* Stili per le filter cards */
.filter-card {
    background: #fff;
    border: 2px solid #e3e6f0;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.filter-card.active {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.filter-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.filter-icon.all-users {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.filter-icon.admin-role {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.filter-icon.certificatore-role {
    background: linear-gradient(135deg, var(--color-primary), #1e7e34);
    color: white;
}

.filter-icon.utente-role {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.filter-icon.default-role {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.filter-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.filter-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.filter-card.active .filter-title {
    color: white;
}

.filter-count {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 15px;
    min-width: 25px;
    text-align: center;
}

.filter-card.active .filter-count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Riga filtri: uno accanto all'altro */
.filter-cards-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.filter-cards-row .filter-card {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
}

.filter-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e3e6f0, transparent);
    margin: 15px 0;
    border-radius: 1px;
}

.filter-divider-vertical {
    width: 2px;
    height: auto;
    min-height: 40px;
    margin: 0;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, #e3e6f0, transparent);
    flex-shrink: 0;
}

/* Animazione di caricamento per le cards */
.filter-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.filter-card:hover:before {
    left: 100%;
}

/* Badge personalizzati */
.badge-danger { background-color: #dc3545; }
.badge-success { background-color: var(--color-primary); }
.badge-primary { background-color: #007bff; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: var(--color-info); }
.badge-secondary { background-color: #6c757d; }

/* Stili esistenti */
.current-user {
    background-color: #900 !important;
}

.active {
    font-weight: bold;
    color: #000000;
}

.initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-indicator {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.switch-indicator:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-indicator {
    background-color: #007bff;
}

input:checked + .switch-indicator:before {
    transform: translateX(26px);
}

/* Responsive design per mobile */
@media (max-width: 768px) {
    .filter-card {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .filter-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 8px;
    }
    
    .filter-title {
        font-size: 13px;
    }
    
    .filter-count {
        font-size: 11px;
        padding: 3px 6px;
    }
} 